You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Bob Damato <bo...@coxtarget.com> on 2005/02/09 21:28:51 UTC

Pool Info?

I'm using ConnectionFactoryPooledImpl and I'm trying to find run time information about the pool such as the current number of connections "checked out", and the number of connections that were timed out etc. Is there any way to get this data?



Re: Pool Info?

Posted by Armin Waibel <ar...@apache.org>.
Hi Bob,

currently there are no methods to access the used commons-pool instances 
in ConnectionFactoryPooledImpl. I recommend to extend 
ConnectionFactoryPooledImpl and override method #createConnectionPool.

public ObjectPool createConnectionPool(JdbcConnectionDescriptor jcd)
{
   ObjectPool pool = super.createConnectionPool...
   // add 'pool' instance to list or map, ObjectPool has methods to
   // lookup active connections, idle connections ...
   return pool;
}

regards,
Armin

Bob Damato wrote:
> I'm using ConnectionFactoryPooledImpl and I'm trying to find run time information about the pool such as the current number of connections "checked out", and the number of connections that were timed out etc. Is there any way to get this data?
> 
> 
> 

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