title: Default JBoss 7 Connection Pool timeout
body: <p>Does anyone know what is the default connection timeout for in JBoss 7 when using connection pooling?</p>
  
  <p>My datasource is defined like this</p>
  
  <pre><code>&lt;?xml version = '1.0' encoding = 'UTF-8'?&gt;
  &lt;datasources&gt;
     &lt;xa-datasource jndi-name="java:/xxxxx" pool-name="xxxxx"
                    enabled="true" use-java-context="false"&gt;
        &lt;xa-datasource-class&gt;oracle.jdbc.xa.client.OracleXADataSource&lt;/xa-datasource-class&gt;
        &lt;xa-datasource-property name="URL"&gt;
           jdbc:oracle:thin:@xxxxxxxxx:1521:xxxxxxxx
        &lt;/xa-datasource-property&gt;
        &lt;driver&gt;oracle.jdbc.OracleDriver&lt;/driver&gt;
        &lt;new-connection-sql&gt;select 1 from dual&lt;/new-connection-sql&gt;
        &lt;transaction-isolation&gt;TRANSACTION_READ_COMMITTED&lt;/transaction-isolation&gt;
        &lt;xa-pool&gt;
           &lt;min-pool-size&gt;1&lt;/min-pool-size&gt;
           &lt;max-pool-size&gt;50&lt;/max-pool-size&gt;
           &lt;is-same-rm-override&gt;false&lt;/is-same-rm-override&gt;
           &lt;interleaving&gt;false&lt;/interleaving&gt;
           &lt;pad-xid&gt;false&lt;/pad-xid&gt;
           &lt;wrap-xa-resource&gt;false&lt;/wrap-xa-resource&gt;
        &lt;/xa-pool&gt;
        &lt;security&gt;
           &lt;user-name&gt;
              xxxxxxxx
           &lt;/user-name&gt;
           &lt;password&gt;xxxxxxx&lt;/password&gt;
        &lt;/security&gt;
        &lt;validation&gt;
           &lt;validate-on-match&gt;true&lt;/validate-on-match&gt;
           &lt;background-validation&gt;false&lt;/background-validation&gt;
        &lt;/validation&gt;
        &lt;statement&gt;
           &lt;share-prepared-statements&gt;false&lt;/share-prepared-statements&gt;
        &lt;/statement&gt;
     &lt;/xa-datasource&gt;
  &lt;/datasources&gt;
  </code></pre>
  
  <p>PS: I query my database and see the connections from my JBoss and cant figure out how it creates a new connection or when it uses an existing one from the pool. Mostly i have a couple of connections with status INACTIVE when the JBoss server is not used by any application.</p>