Configuring JNDI Resources
Configuring JNDI Resources Each available JNDI Resource is configured based on inclusion of the following elements in the or elements: - 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 element in the web application deployment descriptor). - Configure the name and data type of a resource made available to the application (equivalent to the inclusion of a element in the web application deployment descriptor). - Add a link to a resource defined in the global JNDI context. Use resource links to give a web application access to a resource defined in the child element of the element. - Add a resource factory for instantiating the UserTransaction object instance that is available at java:comp/UserTransaction. Any number of these elements may be nested inside a element (to be associated only with that particular web application). In addition, the names and values of all elements included in the web application deployment descriptor (/WEB-INF/web.xml) are configured into the initial context as well, overriding corresponding values from conf/server.xml only if allowed by the corresponding element (by setting the override attribute to "true"). Global resources can be defined in the server-wide JNDI context, by adding the resource elements described above to the child element of the element and using a to include it in the per-web-application context.