Possible Duplicate:
How to monitor c3p0 connections
How can I get database connection pool information such as total connections in use, connection remaining etc ?. I want this information for logging (troubleshooting) purposes. I am using Hibernate with C3P0.