You are looking for the "removeAbandoned" feature.
DBCP doesn't check periodically but only when the pool is almost empty. More information on the configuration page:
http://jakarta.apache.org/commons/dbcp/configuration.html


-- Dirk

Paul Hsu wrote:

Hi,

I just wonder that DBCP can monitor a connection pool to check if a connection 
is borrowed too long by a client periodically, if so then pool will mandatory 
move the connection from active to idle. This can void whoever borrow the 
connection and never return to pool. So we need to parameters can be set, one 
is the how often pool will monitor and other is how long a connection can be 
borrowed out.


Thanks,

Paul



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to