public int getAllConnectionNumber ( DataSource aPooledDataSource ) throws SQLException { PooledDataSource pDs = ( PooledDataSource ) aPooledDataSource ; return pDs . getNumConnectionsAllUsers ( ) ; }
The followings are only for testing purpose