Slightly off topic I guess, but you are using BasicDataSourceFactory with Tomcat, then I am guessing you are using 4.0.3? The non released version? I want to use BasicDataSourceFactory from a single location, because in my application I have three dang pools, because I don't have JNDI setup, they can't find each others pools.
I have Torque decoupled with it's own pool, I have Turbine 2.1 with it's own pool, and My other tomcat based webapp dbForms using it's own pool! It would be great if I could either get the pool from JNDI (if everyone supported it) or Tomcat...! Eric +1 for removing references to DBConnection class. -----Original Message----- From: Bill Schneider [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 10:10 AM To: Turbine Torque Developers List Subject: Re: datasources from JNDI > What would be the replacement for DBConnection? > > I am a little fuzzy on understanding database pools etc.. I thought Torque > used the commons pool and dbcp, but couldn't find it in CVS.. Would the > replacement be to use DBCP? What's important isn't eliminating the DBConnection class, but eliminating references to it. If DBConnection implemented javax.sql.Connection, then explicit references to DBConnection would be unnecessary. > If Torque doesn't use DBCP, why? I integrated DBCP with DbForms > (www.dbforms.org) to provide connection pooling, but if torque has a better > pool, I would like to use that instead. Probably because Torque (and turbine) predates commons DBCP. I like DBCP and use BasicDataSourceFactory with Tomcat, and have good experiences with it except for it not closing statements when you call Connection.close(). that was an easy patch, though. :-) -- Bill -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
