• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

passing -Darg=val while starting WebSphere (AppServer)

 
Venkata Ramba
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm trying to find a way to pass a custom (name, value) pair as part of server start. I know it works fine when we pass some thing like:
java -Darg=something Test

for a stand-alone application, and inside Test, we can get access to arg as:



But, how to achieve this kind of thing in the WebSphere environment. I tried to pass -Dprop=something, in the startServer.bat, but could not get it's value in a CmdImpl class, after the start of the App Server.
Is there a way to pass a custom property and value to WebSphere Commerce environment. Thanks for your thoughts.

Ven_V
 
Mikalai Zaikin
Ranch Hand
Posts: 3365
11
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy !

You can't do this in command line.

You need to use ISC for this, please refer this technote

HTH,
MZ
 
Rambabu Balla
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot. It works.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic