The idea is that people should use the container's (application server's) connection pool, since each container has one, it's not a core Struts value.
.V





Kruse, Matt wrote:


Struts 1.1 includes its trusty old GenericDataSource but you can always plugin DBCP if you want.



Hold on a second...


Isn't GenericDataSource deprecated? I just recently switched from using
GenericDataSource in my struts-config.xml (by specifying no type=) to
explicitly using type=org.apache.commons.dbcp.BasicDataSource because of the
docs in GenericDataSource. Is this no longer the recommended approach?

Currently, I'm having some problems with pooling and idle connections which
are closed by the db server actually being given back to my app (I suspect).
Could this be related to the bugs in dbcp you are talking about?

Using 1.1RC2, what is the recommended way to acquire pooled db connections?

Matt Kruse




-- Vic Cekvenich, Struts Instructor, 1-800-917-JAVA

Advanced <a href ="baseBeans.com">Struts Training</a> and project recovery in North 
East.
Open Source <a href ="baseBeans.com">Content Management</a>  basicPortal sofware
Best practice<a href ="baseBeans.com">Struts Support</a> v.1.1 helper ScafflodingXPress




Reply via email to