geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <david_jen...@yahoo.com>
Subject Re: Monitoring the database pool
Date Fri, 20 Feb 2009 17:37:06 GMT

On Feb 20, 2009, at 4:59 AM, Hearty wrote:

>
> Is there any api available for writing the code for monitoring the  
> database
> pool?
> I am interested in knowing active connections,idle connections etc.
> I know there is a class "org.apache.commons.dbcp.BasicDataSource"  
> which I
> can used for
> getting the above information.
> But the issue I am facing here is when try to type cast my  
> datasource object
> to BasicDataSource
> I am getting the following exception
>
> java.lang.ClassCastException org.tranql.connector.jdbc.DataSource
> incompatible with org.apache.commons.dbcp.BasicDataSource.
>
> Can any one tell me how to get the connection details programatically?
> Is there any class just like of BasicDataSource available as an API?

We don't use dbcp.

The connection manager gbean for your datasource supplies a lot of  
information of the kind you want.  You can find it in the jmx viewer  
in the admin console.

thanks
david jencks

>
>
> Thanks in advance
>
> -- 
> View this message in context: http://www.nabble.com/Monitoring-the-database-pool-tp22120059s134p22120059.html
> Sent from the Apache Geronimo - Users mailing list archive at  
> Nabble.com.
>


Mime
View raw message