title: How to set the max pool size or connection size for BasicDataSource in Spring Framework
body: <p>I have a Spring application deployed in JBoss EAP server, using the following settings:       </p>
  
  <pre><code>&lt;bean:bean id="userDataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"&gt;
      &lt;bean:property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/&gt;
      &lt;bean:property name="url" value="jdbc:oracle:thin:@10.8.1.5:1521:DB"/&gt;
      &lt;bean:property name="username" value="WEBDB"/&gt;
      &lt;bean:property name="password" value="WEBDB"/&gt;
  &lt;/bean:bean&gt;
  </code></pre>
  
  <p>How do I configure the connection pool's min and max size? </p>
  
  <p>Any references or any best practices for BasicDataSource will be of great help.</p>