So I have 3 VRO environnement, dev, preprod and prod. Dev and preprod are linked to a PSC which is then linked to a dev Active Directory.
And my prod has the same setup, but linked to a prod Active Directory.
Is there a way I can fill in the Username field with my domaine\username ?
The less typing, the happier I am.
Yes, just specify credentials in UPN format and you should be good. It makes no difference the origin of the JNLP.
The thing is that I don't know where to put it in the jnlp file and what format to use.
It was easy to figure out the url, but for the username I have no clue!
Well you don't, you key it in once it starts up, just like you key in the vRO address. Maybe I'm missing something here. What exactly are you hoping to accomplish?
Ahhh! Maybe I wasn't clear. I want to save 3 .jmlp files on my desktop.
One for dev, one preprod and one prod.
I've modified the file to adapt the url value for the hostname, so when I double click on the file, Java starts and it fils in the Host name value, user name value however seems to be stored somewhere in the registry maybe ? Because if I double click on my jnlp file which goes in prod, its showing the Username as my prod username.
I'd prefer to have it filled with the correct value of the username with the right domain based on my VRO environnement I'm trying to connect to.
Might be stupid, but sometimes I try to login with a wrong username at least with 3-4 attempts before I realized my mistake, so I'm trying to find a solution to this.
Here's my jnlp file:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jnlp codebase="https://devserver:8281/vco/client/7.3.0.6423563" href="client.jnlp" spec="1.0+" version="7.3.0.6423563">
<information>
<title>vRealizOrchestrator Client</title>
<vendor>VMware, Inc.</vendor>
<icon href="vco-loading.gif" kind="splash"/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se href="http://java.sun.com/products/autodl/j2se" java-vm-args="-Xmx1024m" version="1.8+"/>
<jar href="lib/TableLayout.jar"/>
<jar href="lib/aopalliance.jar"/>
<jar href="lib/bcpkix-jdk15on.jar"/>
<jar href="lib/bcprov-jdk15on.jar"/>
<jar href="lib/commons-codec.jar"/>
<jar href="lib/commons-io.jar"/>
<jar href="lib/commons-lang.jar"/>
<jar href="lib/commons-logging.jar"/>
<jar href="lib/httpclient.jar"/>
<jar href="lib/httpcore.jar"/>
<jar href="lib/image4j.jar"/>
<jar href="lib/jackson-annotations.jar"/>
<jar href="lib/jackson-core.jar"/>
<jar href="lib/jackson-databind.jar"/>
<jar href="lib/jchronic.jar"/>
<jar href="lib/jgraphx.jar"/>
<jar href="lib/log4j.jar"/>
<jar href="lib/o11n-application.jar"/>
<jar href="lib/o11n-gui-resources.jar"/>
<jar href="lib/o11n-gui.jar"/>
<jar href="lib/o11n-j2eeutil.jar"/>
<jar href="lib/o11n-localization.jar"/>
<jar href="lib/o11n-model.jar"/>
<jar href="lib/o11n-rest-client-services.jar"/>
<jar href="lib/o11n-rest-client-stubs.jar"/>
<jar href="lib/o11n-scriptingapi.jar"/>
<jar href="lib/o11n-scriptingmodel.jar"/>
<jar href="lib/o11n-sdkapi.jar"/>
<jar href="lib/o11n-util.jar"/>
<jar href="lib/o11n-workflow-diagram.jar"/>
<jar href="lib/ognl.jar"/>
<jar href="lib/plexus-archiver.jar"/>
<jar href="lib/plexus-container-default.jar"/>
<jar href="lib/plexus-utils.jar"/>
<jar href="lib/rhino.jar"/>
<jar href="lib/slf4j-api.jar"/>
<jar href="lib/slf4j-log4j12.jar"/>
<jar href="lib/spring-aop.jar"/>
<jar href="lib/spring-beans.jar"/>
<jar href="lib/spring-context.jar"/>
<jar href="lib/spring-core.jar"/>
<jar href="lib/spring-web.jar"/>
<jar href="lib/trident.jar"/>
</resources>
<application-desc main-class="ch.dunes.vso.app.VSOApplication">
<argument>--default-server-host=devserver:8281</argument>
</application-desc>
</jnlp>
vRO client recognizes command-line options -c user:pass@server:port. The problem is how to pass these two arguments to it.
One option is to try with the following application descriptor near the end of the jnlp file:
<application-desc main-class="ch.dunes.vso.app.VSOApplication">
<argument>-c</argument>
<argument>user:pass@server:port</argument>
</application-desc>
(replace user, pass, server and port with the correct values for your setup). This doesn't work for me, but you may have more luck
The second option is to use javaws utility to launch the jnlp file, again passing -c user:pass@server:port. Doesn't work for me, too
I have been playing with this trying to get it to work, but I can't. I can say where the previous login is coming from as well as the list of vRO servers to which you have past connected. That information (and more) is stored in the vmware-vmo.cfg file located at C:\Users\<UserName>\.vmware. You could control the drop-down list of servers by editing that file. For the server, it's possible to have multiple JNLP files which have the vRO server prepopulated. If you go into your Java control panel applet, you can view the various applications that have been cached and then create a shortcut for each one.
The JNLP viewer appears and shows you the server location. You can then create a shortcut for each one by clicking the icon to the right of that properties button.
I still haven't found a way to pass arguments to javaws.exe. Javaws doesn't accept a -c parameter, so no arguments are valid there. An option might be to pass arguments directly to the Java machine using the -J<option> ability, but those aren't documented anywhere that I can find. That's about all I know, but maybe cdecanini_ can weigh in.
If you run javaws with -verbose parameter, it will show a dialog with a lengthy command line that invokes javaw.exe. Maybe the arguments to jnlp can be inserted directly somewhere in this command line, although I haven't figured out where exactly is the right place.
No, this:
c:\ javaws -verbose client.jnlp
I'm not able to find anything there which appears helpful in relation to the original request.