Registering JNDI Data Source Names with Tomcat
This post shows how to make JNDI-based entries into Tomcat’s context.xml file to register multiple database connection resources.
Making JNDI data source entries
The following entries where made to Tomcat’s ‘context.xml’ file for the data source names shown.
*NOTE* For display purposes the entries above have had the names of the servers obfuscated. For example, the reference to “MACH1” represents the DNS name of the production server while “MACH2” represents the DNS name of the server known as the “Web Box”. Therefore the correct names should be substituted. The same holds true for the libraries.