title: A persistent connection with JDBC to MySQL
body: <p>I have an application that connects to MySQL using JDBC.  There are cases where the JDBC connection lies idle for hours (maybe even days) and its loosing its connection to MySQL and then excepts when it tries to execute a query.  What is the best solution for this?</p>