Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Command line JNLP with App parameters

 
Indi Bamunuarachchi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to call a JNLP file through JWS using command line. I'm wondering whether it is possible to pass application parameters in the command line cause those going to be dynamic.
My command line entry will looks similar to "c:\javaws http:\\xxx.xxx.xxx\Test.jnlp".
If its not possible, I'm thinking of passing a sys property value as -J-Dxxxx=yyyy. But it would be nice if I can pass app parameters.

Thanks,
Indi
 
Paul Clapham
Sheriff
Pie
Posts: 20945
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's wrong with putting the application parameters in the normal place in the JNLP file?
 
Indi Bamunuarachchi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In this case, params are going to be dynamic. so i want to pass different values each time.
 
Paul Clapham
Sheriff
Pie
Posts: 20945
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's wrong with generating a new JNLP file containing those parameters each time?
 
Indi Bamunuarachchi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my plan is to keep the JNLP file in webserver. Let JWS to do what is suppose to do from deployment prospective. But pass dynamic parameters to the application by the “caller”, so I don’t need to dynamically create the JNLP each time.

Thanks Indi
 
Paul Clapham
Sheriff
Pie
Posts: 20945
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay. Then the command-line parameters will come from the web server's version of the JNLP file, since that's how JNLP files work. It follows from that design feature that the command-line parameters won't come from anywhere else.

Therefore if you want to pass in information which varies from one run to the next, but you want to use the same JNLP file for each of those runs, it follows that you can't use command-line parameters.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic