I have a problem with my webapp: after some time it returns the SocketException: socket write error, then the Tomcat has to be restarted to get it run again. I have found the blog about similar problem on JBoss (http://viconflex.blogspot.com/2006/11/how-to-keep-db-connections-alive-in.html). Does anyone have a solution for this problem on Tomcat? Thanks in advance