title: JDBC Connection Pool: connections are not recycled after DB restart
body: <p>I added <code>setMaxActive(8)</code> on <code>org.apache.tomcat.jdbc.pool.PoolProperties</code>. Every time the DB restarts, the application is unusable because the established connections remain. I get the following error:</p>
  
  <blockquote>
    <p>org.postgresql.util.PSQLException: This connection has been closed</p>
  </blockquote>
  
  <p>I've tried using some other settings on the pool to no avail... </p>
  
  <p>Thank you for help!</p>