title: Jboss Connection Pooling Configuration
body: <p>In my Jboss server, datasource is configured as following ( jboss-as-7.1.0.Final\standalone\configuration\standalone.xml).<br>
  Is connection pooling enabled here, if so then how many connections and how to track them.</p>
  
  <pre><code>&lt;subsystem xmlns="urn:jboss:domain:datasources:1.0"&gt;
              &lt;datasources&gt;
                  &lt;datasource jndi-name="java:jboss/env/NVXDataSource" pool-name="NVXDataSource" enabled="true" use-java-context="true"&gt;
                      &lt;connection-url&gt;jdbc:mysql://localhost:3306/nvx?zeroDateTimeBehavior=convertToNull&lt;/connection-url&gt;
                      &lt;driver&gt;mysql&lt;/driver&gt;
                      &lt;security&gt;
                          &lt;user-name&gt;root&lt;/user-name&gt;
                          &lt;password&gt;admin&lt;/password&gt;
                      &lt;/security&gt;
                  &lt;/datasource&gt;
                  &lt;drivers&gt;
                      &lt;driver name="mysql" module="com.mysql"&gt;
                          &lt;xa-datasource-class&gt;com.mysql.jdbc.Driver&lt;/xa-datasource-class&gt;
                      &lt;/driver&gt;
                  &lt;/drivers&gt;
              &lt;/datasources&gt;
          &lt;/subsystem&gt;
  </code></pre>
  
  <p>I am looking at defining following properties, where should i do that. </p>
  
  <pre><code>&lt;min-pool-size&gt;10&lt;/min-pool-size&gt;
  &lt;max-pool-size&gt;20&lt;/max-pool-size&gt; 
  &lt;prepared-statement-cache-size&gt;50&lt;/prepared-statement-cache-size&gt;
  </code></pre>
  
  <p>Thanks.</p>