I am having trouble using JNDI when two or more applications are deployed on Tomcat 6. Consider the following scenario: I have 2 webapps, where each web.xml contains one JNDI pa
Well, I was revisiting the JNDI territory again and encountered a similar use case. Now I succeeded.
If you need to access plain JNDI variables in a Web application, they should be defined in the element of your web application. But the syntax for defining an environment entry in the context differs from the syntax that is to be used in the web app descriptor (see my original post). This is where my confusion started.
In the context it should be like:
For global variables I still presume {CATALINA_HOME}/conf/context.xml will be the place to put these Environment entries.
See the docs at apache: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html#Environment_Entries
Anyway, thanks for your help!