Environment Variables

Where can I get information about environment variables?Can I set Environment variables through the bean so that I can access using jndi lookup "java:comp/env" path.
[186 byte] By [Meghna75] at [2007-9-26 1:21:34]
# 1
Yes, if you are using deploytool, you can set the environment variables in the "Environment Entries" tab.Just add the reference from your code, the type and value, and you can look it up accordingly.
shirish_wagh at 2007-6-29 0:57:24 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Can I add an environment variable and set a value in the application and then use it as long as the application is running?The value should be unique for a client, something like a session.
Meghna75 at 2007-6-29 0:57:24 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3
Under which name are those configurational entries reachable? I tried out java:comp/env/<variablename> but that didn't work out.
vinzleesan at 2007-6-29 0:57:24 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4
hi,java:comp/env/<variablename> should work.I am doing like this and it's working InitialContext ictx = new InitialContext(); ictx.lookup("java:comp/env/"+<variablename>);RgdsManoj
mnjoshi at 2007-6-29 0:57:24 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...