I have several server processes that once in a while respond to messages from the clients and perform read-only transactions.
After about a few days that the servers
I changed my hibernate configuration file by adding thoses lines and it works for now:
true
true
true
I think that using c3p0 pool is better and recomanded but this solution is working for now and don't present ant problem.
I let the Tomcat On for 24hours and the connection wasn't lost .
Please try it .