Correct me if I'm wrong.
For my understanding, each hibernate session attempts a connection to the database. When the session is closed, the connection terminates as well. So I only need to make sure a Hibernate session is closed after process.
I use MyEclipse which generates sessionFactory...
I mean every morning when I open the home page, it throws 500 error. And after I restart Tomcat, everything will be fine till the next morning.
All connections are managed by Hibernate. And I always close a Hibernate session after each access.
I have a web site using Hibernate + Struts. It is on company's server with Tomcat + MySQL.
Once a day, the application disconnects to the database and throws 500 error to every page since the side bar needs to pull info. from the database. Log only says "Could not execute query". So, every...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.