• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Command line JNLP with App parameters

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Marshal
Posts: 28177
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Marshal
Posts: 28177
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Marshal
Posts: 28177
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic