title: Connection not returned to tomcat pool
body: <p>I have a jdbc pool in tomcat which is used to establish database connections.I am not explicitly closing the connection object after use.My 'maxActive' parameter is set to 100.The application runs smoothly for some time but then it fails to do database queries.It waits for infinite time to query to database.</p>
  
  <p>Why is the 'removeAbandoned' parameter not returning unused connection objects back to the pool?</p>
  
  <pre><code>Resource name="jdbc/Dhaval/Application"
          auth="Container" type="javax.sql.DataSource" driverClassName="oracle.jdbc.driver.OracleDriver" factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
          url="jdbc:oracle:thin:@XXXXXXX:orcl" username="XXXXXX" password="XXXXXX"
          maxActive="5" maxIdle="2" maxWait="-1"  logAbandoned="true" removeAbandoned="true" removeAbandonedTimeout="10" 
  </code></pre>