I assume you are using BasicDataSource on Tomcat.
You can simply lookup the datasource using JNDI like you alway do.
Cast it to BasicDataSource and then use the available getters:
ds.getNumActive(), ds.getNumIdle(), ds.getMaxActive(), ...

Here is a page I use to debug JNDI configurations:
http://cvs.apache.org/~dirkv/builds/showJNDI.jsp

This should get you started, feel free to update the Wiki if you find this usefull.

-- Dirk

[EMAIL PROTECTED] wrote:
Hello,

I looked at the site and Javadocs and Wiki and glanced at the mailing
list archives, but did not see what I was looking for, which is:

Is there a way to peek into a DBCP-managed connection pool in order to
get some information about the status of the pool?
(e.g. current pool size, max pool size, etc.)

Is this the DBCP entry point that I am looking for:
http://jakarta.apache.org/commons/dbcp/apidocs/org/apache/commons/dbcp/PoolableConnectionFactory.html#getPool()

Thank you,
Otis



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



Reply via email to