tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject global JNDI environment entries on tomcat 5.5
Date Wed, 05 Jul 2006 20:17:10 GMT
I am trying to use JNDI to externalize some configuration properties in
a web application.  

These properties are strings and are environment specific.  Because they
are impacted by the environment the web application is deployed on, I do
not want to include them in the web.xml.

In reading the tomcat 5.5 JNDI instructions
( and
the mailing lists
ironment+entry+5), it seems that creating <Environment> entries under
the <GlobalNamingResources> would be ideal for this.

Environment values should be accessible container wide and they don't
seem to require any reference in the web.xml file.

However, my application cannot find any environment entries defined
under GlobalNamingResources.  They can only be located if the
environment entries are defined for the applications context (e.g.

I am using the standard "java:comp/env" name for looking up my env
context.  Is this incorrect for accessing global resources?

Please note:  I am using the tomcat admin web application for create the
jndi resources.

What am I missing?

Best regards,


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message