commons-user mailing list archives

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

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!

Daniel Baldes

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message