title: MaxActive database connection parameter doesn't work
body: <p>I have a problem with datasource configuration. </p>
  
  <p>I have a Tomcat 7 with Java 7 and a Quartz web application. 
  This application has a datasource configured: </p>
  
  <pre><code>&lt;Resource 
     auth="Container"
     driverClassName="com.mysql.jdbc.Driver"
     factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
     logAbandoned="true"
     maxActive="3"
     maxIdle="1"
     maxWait="10000"
     name="jdbc/name"
     password="XXXXXX"
     removeAbandoned="true"
     removeAbandonedTimeout="120"
     type="javax.sql.DataSource"
     url="jdbc:mysql://xxxxxx:3306/xxxxx?autoReconnect=true&amp;zeroDateTimeBehavior=convertToNull&amp;rewriteBatchedStatements=true"
     username="usr"
     validationQuery="SELECT 1" /&gt;
  </code></pre>
  
  <p>With maxActive = 3 I expected to see no more than 3 connection opened. Instead of this, I see a new connection opened every time a Quartz Job starts, untill 8 connection (don't know if this is the default limit). </p>
  
  <p>So it seems this parameter is not considered, but other yes, because the connection to database is correct so username, password etc... are ok. </p>
  
  <p>Can you help me please? </p>
  
  <p>thanks</p>