Caldarale, Charles R wrote: >> 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.
I'm getting a little confused trying to follow this thread. Keith: you want to use DataSources to define the location of the DB via JNDI, but earlier you said you wanted to supply authentication credentials on a per user basis. When you say 'per user' do you mean 'per client of my business', or do you mean actual individual end-users of the application, (the former I presume)? I'm also not clear on why you're dead set against using connection pooling, would you mind explaining? Regards, p > 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 > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org