Hi Pai , Thanks for your reply ,
How are you testing that the connections aren't released?
By listing the number of database connections using the mysql command
show processlist;
executing this command after deploying of the application( and running it ) and after undeploy of the application
The file you posted looks like a hibernate configuration file. Is that right? If yes, how are you using Hibernate in your application?
yes it is hibernate configuration file along with C3P0 configuration ,
part of Hibernate configuration file :
I am using hibernate as the following
Hibernateutil class
Example to save entity
Are you setting up the entitymanagers yourself
Frankly i dont know what do you mean by entitymanagers , but i ll check that