title: How to know the number of connection pools created in JBOSS application server
body: <p>I am using jboss 7.0 for web application. In standalone.xml file, I have defined datasource as ,</p>
  
  <pre><code>&lt;datasource jndi-name="java:jboss/datasources/finacpacds" pool-name="ltmscompanyadmindspool" enabled="true" jta="true" use-java-context="true" use-ccm="true"&gt;
                      &lt;connection-url&gt;
                          jdbc:mysql://localhost:3306/finacpac?zeroDateTimeBehavior=convertToNull&amp;amp;useUnicode=true&amp;amp;characterEncoding=utf-8
                      &lt;/connection-url&gt;
                      &lt;driver&gt;
                          mysqldriver
                      &lt;/driver&gt;
                      &lt;transaction-isolation&gt;
                          TRANSACTION_READ_COMMITTED
                      &lt;/transaction-isolation&gt;
                      &lt;pool&gt;
                          &lt;min-pool-size&gt;
                              10
                          &lt;/min-pool-size&gt;
                          &lt;max-pool-size&gt;
                              50
                          &lt;/max-pool-size&gt;
                          &lt;prefill&gt;
                              true
                          &lt;/prefill&gt;
                          &lt;use-strict-min&gt;
                              false
                          &lt;/use-strict-min&gt;
                          &lt;flush-strategy&gt;
                              FailingConnectionOnly
                          &lt;/flush-strategy&gt;
                      &lt;/pool&gt;
                      &lt;security&gt;
                          &lt;user-name&gt;
                              root
                          &lt;/user-name&gt;
                          &lt;password&gt;
  
                          &lt;/password&gt;
                      &lt;/security&gt;
                      &lt;validation&gt;
                          &lt;validate-on-match&gt;
                              false
                          &lt;/validate-on-match&gt;
                          &lt;background-validation&gt;
                              false
                          &lt;/background-validation&gt;
                          &lt;useFastFail&gt;
                              false
                          &lt;/useFastFail&gt;
                      &lt;/validation&gt;
                      &lt;statement&gt;
                          &lt;prepared-statement-cache-size&gt;
                              100
                          &lt;/prepared-statement-cache-size&gt;
                          &lt;share-prepared-statements/&gt;
                      &lt;/statement&gt;
                  &lt;/datasource&gt;
  </code></pre>
  
  <p>Now my question is can i see the number of connection pools created when jboss is running by system.out.print statement. Is there any way to do this.</p>