Tomcat 5 provides a JNDI InitialContext implementation instance for each web application running under it.
The J2EE standard provides a standard set of elements in the /WEB-INF/web.xml file to reference resources; resources referenced in these elements must be defined in an application-server-specific configuration.
For Tomcat 5, these entries in per-web-application InitialContext are configured in the <Context> elements that can be specified in either $CATALINA_HOME/conf/server.xml or, preferably, the per-web-application context XML file (either META-INF/context.xml).
You can to define an environment resource like this:
Good luck with JCIFS. We had a tough time with it.
Using context.xml per application is always preferred against setting values in tomcat config. However tomcat will make a copy of context.xml which will be cached in server "work" directory as <application-name>.xml. If the changes that you do in context.xml are not reflected immediately, consider deleting the cached file.
After some pecan pie, you might want to cleanse your palatte with this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss