How to configure a global JNDI datasource in Tomcat 6?
I'm struggling to configure a simple JNDI pooled datasource in Tomcat 6.0.32. I want to create the datasource definition outside my web application artifact. Basically I don't want my application to know the credentials to access the database server. I was under the assumption that, like in Weblogic, it should be possible to create a "global" JNDI datasource in Tomcat, but so far I have been unsuccessful. I have tried to add the datasource definition in CATALINA_HOME/conf/context: <Resource name="jdbc/mydb" auth="Container" type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDriver"