Hi, I'm using Tomcat 6.20 and have configured a datasource in META-INF/context.xml, which looks basically like this:
<?xml version="1.0"?> <Context reloadable="false"> <Resource name="jdbc/mydb" factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory" type="javax.sql.DataSource" scope="Shareable" auth="Container" /> </Context> For brevity I have removed some attributes, but this is basically my definition. I can now just directly look up this DataSource using JDNI under the java:comp/env/jdbc/mydb name. However according to http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html I need to add a resource-ref element to my web.xml. I didn't do that and it still works. Am I missing something? What's the purpose of resource-ref anyway? --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org