commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Baldes ...@open.ch>
Subject [dbcp] connection events / connection close hook
Date Tue, 03 May 2011 14:07:27 GMT
Hi,

I'd like to run some connection-specific clean-up code when a physical 
database connection is closed by the connection pool.

I found ConnectionEventListener and 
PooledConnection.addConnectionEventListener() in the JDBC API, however I 
think this is just used internally by JDBC drivers? At least I found no 
reasonable way to attach my own listener to new connections.

Is there any way to do that with DBCP? (Or any other workable connection 
pool implementation that you know?)

Thanks in advance!

Regards,
Daniel Baldes

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message