You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Christophe Vigny <cv...@artprice.com> on 2001/03/16 17:31:25 UTC

Connection Pool

Where is the connection pool ?
in tomcat, in turbine or in strut ?


Re: Connection Pool

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Fri, 16 Mar 2001, Christophe Vigny wrote:

> Where is the connection pool ?
> in tomcat, in turbine or in strut ?
> 
> 

Turbine and Struts both have connection pool implementations.

Struts can actually use any connection pool that implements
javax.sql.DataSource -- it only defaults to its own.  The Turbine
connection pool, unfortunately, is not useful for this because it does not
implement the DataSource interface.  However, several other connection
pool implementations available on the web are suitable.

There is an ongoing discussion about creating a "Commons" project within
the Jakarta framework to create and maintain shareable implementations of
components like this -- and a connection pool is the primary example of
the kind of code we all want to be able to share.  Once the commons
project is started, the physical source code for the connection pool
Struts uses will move to the Commons project, but this move will have
little or no impact on Struts applications (you'll need a separate JAR
file, but that's easy to deal with).

Craig