There are methods getNumActive and getNumIdle in the object pool that
you use with the datasource. I use a GenericObjectPool that contains
those methods.

Eg:
StringBuffer stats = new StringBuffer("\n --------- START tag: " + tag
+ " --------------\n");
        stats.append("Pool statistics for pool: " + m_name + "\n");
        stats.append("MaxActive(max pool size): " +
m_generic_objectpool.getMaxActive() + "\n");
        stats.append("Active: " + m_generic_objectpool.getNumActive() + "\n");
        stats.append("Idle: " + m_generic_objectpool.getNumIdle() + "\n");
        stats.append("----------------- END ----------------------");

BR // Martin




On Thu, Nov 13, 2008 at 5:30 AM, raja peter <[EMAIL PROTECTED]> wrote:
> HI,
>
> Want to retrieve getNumActive and getNumIdle from PoolingDataSource.
>
> Why no option for this.
>
> Thanks.
>

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

Reply via email to