> From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] > Subject: RE: How to turn off JNDI datasource connection pooling > > Look at the <resource-ref> construct in the servlet spec.
O.k., that was too simplistic. You'll also need the following. Does your DB driver include some factory class that creates Connnection objects? (It should.) If so, you can specify that in the factory attribute of the <Resource> element in your webapp's <Context>. This will override Tomcat's normal pooling factory. Make sure you set auth=Servlet in the <Resource>. If absolutely necessary, you can write a simple custom factory, as described here: http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html#Adding%20Custom%20Resource%20Factories You might be able to get away with a <resource-env-ref> element in web.xml to further simplify things. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org