title: Tomcat validates connection on every borrow
body: <p>I am using Tomcat 7 (jdk 1.6) in Eclipse 4.3.2.</p>
  
  <p>I configured my Connection Pool as below : </p>
  
  <pre><code>&lt;Resource name="jdbc/myDS" auth="Container" type="javax.sql.DataSource" 
     driverClassName="com.p6spy.engine.spy.P6SpyDriver"
     url="jdbc:p6spy:oracle:thin:@server:1521:XXX"
     username="XXX" password="XXX" maxActive="2" maxIdle="2" maxWait="-1"
     validationInterval="30000" validationQuery="SELECT 1 FROM DUAL"
  /&gt;
  </code></pre>
  
  <p>I am using Spring 3.2.14, Hibernate 3.2.6-GA, CXF 2.7. </p>
  
  <p>Every time I receive a SOAP request, I saw in P6SPY logs that <strong>the validation query is run independently of validationInterval</strong> and its description <a href="https://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html" rel="nofollow">https://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html</a>.</p>
  
  <p>I was expecting the connections to be validated at most once every 30 seconds.</p>
  
  <p>Is there anything wrong with my configuration, or is this a known bug ?</p>