title: How to auto reconnect Oracle connection pool after connection interruption?
body: <p>I'm running across a problem with Oracle connection pooling via OracleConnectionCacheImpl. When I connect to a connection pool on my database server (Oracle 10g) via the thin driver, everything works fine until after an unspecified time, the db connection gets dropped (possibly due to idle connections?) and I get an error message: </p>
  
  <blockquote>
    <p>Closed Connection.</p>
  </blockquote>
  
  <p>Refreshing the page and reattempting the connection reconnects the database, so it does not seem to be a problem with the network or the database. Is a way for the Oracle connection pool to validate its connection and reconnect if the connection in the pool is dead for any reason?</p>
  
  <p>I am using Apache Tomcat 6.0.18, Java EE6 update 11.</p>
  
  <p>(There seems to be a ping function in the Oracle thin driver. Does that help and where can I find it?)</p>