Having a thread using Hibernate and C3p0 with database on Tomcat -


i using hibernate , c3p0 manage connections. have thread database operations.

the problem when undeploy webapp tomcat, thread exits correctly, connection pool still remains, there still connections in mysql, think managed c3p0.

is there way force c3p0 shutdown these connections?

thanks

check pooleddatasource object, has method called hardreset. it's spec says

destroys pooled , checked-out connections associated datasource immediately. pooleddatasource reset initial state prior first connection acquisition, no pools yet active, ready requests.

i assume should asking for.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -