Sometimes my application is throwing JDBCConnectionException: Cannot open connection
I can't for the life of me work out why.
It is a web app running on tomcat and using hibernate.
I'm using a session filter that starts the transaction then processes the users action then closes the transaction.
So I don't think that connections are getting left open.
Do I have C3P0 configured properly?
<property name="hibernate.c3p0.idle_test_period">14400</property> <!-- seconds -->
<property name="hibernate.c3p0.timeout">25200</property> <!-- seconds -->