I\'m using Apache Commons DBCP. There is a task to track the inner behavior of the DBCP - number of active and idle connections.
I found out that DBCP lacks any such lo
AOP is the way to go for tracking connection usage from the pool. However, its not very straight forward. You need to do the following:
With this setup, you can track both the borrow & return of the connection from/to the pool.