Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

connection pool - DBCP error

Propes, Barry L

2007-02-26

Replies:

I am getting a slight error with regards to my connection pool configuration.

I may not have totally closed the connection properly, but shouldn't the following account for it?



AbandonedObjectPool is used ( org.apache.commons.dbcp.AbandonedObjectPool@(protected))

 LogAbandoned: true
 RemoveAbandoned: true
 RemoveAbandonedTimeout: 60


in other words, if I have the following configured like so,

 <parameter>
  <name>maxWait</name>
  <value>7000</value>
 </parameter>
<parameter>
<name>removeAbandoned</name>
<value>true</value>
</parameter>
<parameter>
<name>removeAbandonedTimeout</name>
<value>60</value>
</parameter>
<parameter>
<name>logAbandoned</name>
<value>true</value>
</parameter>

shouldn't the RemoveAbandoned params account for an open or vagrant connection and kill it off properly?
Am I wrong in the assumption this attribute should have?

Thanks,

Barry
©2008 junlu.com - Jax Systems, LLC, U.S.A.