Hello,
Does anyone know how I get connection pool info in my log file (log4j)? I'm using apache dbcp Basic DataSource and I'm interested in seeing the pool size and when/if a connection is returned to the pool.
cheers.
Hello,
Does anyone know how I get connection pool info in my log file (log4j)? I'm using apache dbcp Basic DataSource and I'm interested in seeing the pool size and when/if a connection is returned to the pool.
cheers.
Anyone have a suggestion ?
cheers
Looking for some help with this again...
You can look through dbcp and commons-pool source and check that they don't use logging. The only you can do is to use standard jdbc logging facilities via BasicDataSource.setLogWriter() and implement a custom wrapper that is able to provide you current pool state (like the one mentioned here).