On Wed, 5 Feb 2003, Sean Dockery wrote:
> Date: Wed, 05 Feb 2003 11:03:00 -0700 > From: Sean Dockery <[EMAIL PROTECTED]> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> > To: Tomcat Users List <[EMAIL PROTECTED]> > Subject: Re: DBCP+TOMCAT 3.2.4 (->4.1.x WORKED OK) > > You can still use DBCP in Tomcat 3.x, right? Should work. > You just can't deploy the > data source through JNDI automatically... > Right. > Could this be done manually? That is, could I not write a context listener Um, context listeners are Servlet 2.3 things ... :-) > that deployed the DBCP factory through JNDI when the application was > started? I know that it would involve changing the catalina.policy file so > that JNDI wasn't read-only to web applications, but could it not be done? > There *is* no implemented JNDI context to deploy into under Tomcat 3.2, unless you create one yourself and include it in your webapp. If you want to use DBCP under Tomcat 3.2, just set up an instance of org.apache.commons.dbcp.BasicDataSource in the init() method of a servlet, and make it available as a servlet context attribute (instead of through JNDI). Craig --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
