Hello,

I have tried to access Tomcat 5.0 (xx) Global Environment variables.

I have the Integer simpleValue defined in the Tomcat Administrators panel
under "Environment Entries"

Here's my code:

Context initContext = new InitialContext();
Context envContext = (Context)initContext.lookup("java:comp/env");
Integer i = (Integer)e.get("simpleValue");

I have also tried and infiinite variation of this with no success (Accessing
the Initialcontext directly)

The Tomcat docs at:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.html

says:

"<Environment> - Configure names and values for scalar environment entries
that will be exposed to the web application through the JNDI InitialContext
(equivalent to the inclusion of an <env-entry> element in the web
application deployment "


PLEASE HELP !!!


Geir Ove

Norway


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to