Hibernate version: hibernate-3.0beta4
I'm using Hibernate with several applications. Some of the applications are Web applications which I'm running in Tomcat. Others are standalone console applications. In Tomcat, I've always used the built-in connection pooling that Tomcat provides (Apache Commons DBCP (
http://jakarta.apache.org/commons/dbcp/ ... ation.html)). However, I'm considering switching to using C3P0 so that I can use a single hibernate.properties file for both Web and standalone applications (I'm thinking about not using JNDI).
One of the things that I like about DBCP is that it can check for abandoned connections. i.e. it can detect connection pool leaks (when you forget close a JDBC connection through the result of a programming error or exception).
I'm wondering if anyone knows if there is a way to do this with C3P0 or Proxool? In looking at the C3P0 documentation, as far as I can tell, it doesn't have this capability...
I wonder if there is a way to use DBCP with Hibernate in standalone mode?