Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Java environment variable?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am porting an application to WebSphere and I need help passing an environment variable. Normally we would just include this variable in the java line with -D, but we can't do that with WebSphere. I tried defining it in the Application Assembly tool under both "Environment Entries" and "Context Parameters", but the application doesn't seem to pick it up.

If someone could give me a hint here I'd appreciate it. I have been STFW'ing all day with no luck.
 
I am not sure if that will be the exact solution,but the method I generally use is to construct a simple servlet e.g
ActivationServlet in its doGet method I declare my initial variables (generally getServletContext().setAttribute(....) etc.).After constructing my servlet,I state it in my web.xml file with loadOnStartup option. Salih Sipahi
Software Engineer.
City of Istanbul Turkey
openyourmind77@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top