title: JDBC Connection pool not reopening connections in Tomcat
body: <p>I have set up Tomcat to use a connection pool yet after the MySQL timeout on connections the connections previously open in the pool are not opened. Here is what my context.xml file looks like: </p>
  
  <pre><code>&lt;Resource name="jdbc/hpsgDB" auth="Container" type="javax.sql.DataSource"
             maxActive="5" maxIdle="3" maxWait="10000"
             username="uname" password="password" driverClassName="com.mysql.jdbc.Driver"
             url="jdbc:mysql://localhost:3306/hpsgdb?autoReconnect=true"/&gt;
  </code></pre>
  
  <p>As you can see I have included autoReconnect as true yet it doesn't. I have checked the process on the database after 8 hours which is what the time out is set to. </p>