If i leave my app idle for a long time, it eventually goes java.net.SocketException: Software caused connection abort: socket write error
when i come back to it and it tries to do: query.list()
The db server is MySQL5. The ORM framework is Hibernate.
The question is, can i restart the connection within a try catch block somehow? I mention if i just restart the Tomcat server, the problem is gone of course.