I just wanted to make sure that JNDI was really the right way to go... Using those Context xml files in Catalina/localhost would also work with init-params AFAIK.
Is r/o JINDI really required by the servlet spec? I just looked at the 2.4 servlet spec, and it's not clear to me. See "encouraged, but not required" near the bottom. SRV.9.11 Web Application Environment The JavaTM 2 Platform, Enterprise Edition defines a naming environment that allows applications to easily access resources and external information without explicit knowledge of how the external information is named or organized. As servlets are an integral component type of J2EE technology, provision has been made in the Web application deployment descriptor for specifying information allowing a servlet to obtain references to resources and enterprise beans. The deployment elements that contain this information are: • env-entry • ejb-ref • ejb-local-ref • resource-ref • resource-env-ref The developer uses these elements to describe certain objects that the Web application requires to be registered in the JNDI namespace in the Web container at runtime. The requirements of the J2EE environment with regard to setting up the environment are described in Chapter J2EE.5 of the JavaTM 2 Platform, Enterprise Edition version 1.4 specification1. Servlet containers that are not part of a J2EE technology-compliant implementation are encouraged, but not required, to implement the application environment functionality described in the J2EE specification. If they do not implement the facilities required to support this environment, upon deploying an application that relies on them, the container should provide a warning. -Yonik
