- milestone: --> v2.4.9
Non-closed connections will be released and removed from
pool on a transaction commit.
Also, a stack trace will be printed of where the non-closed
connection was created. This behavior is configurable so
you MUST turn it on(see config below).
<mbean code="org.jboss.jdbc.XADataSourceLoader"
name="DefaultDomain:service=XADataSource,name=Defau
ltDS">
<attribute name="PoolName">DefaultDS</attribute>
<attribute
name="DataSourceClass">org.jboss.pool.jdbc.xa.wrapper.X
ADataSourceImpl</attribute>
<attribute name="Properties"></attribute>
<attribute
name="URL">jdbc:hsqldb:hsql://localhost:1476</attribute>
<attribute name="GCMinIdleTime">1200000</attribute>
<attribute name="JDBCUser">sa</attribute>
<attribute name="MaxSize">10</attribute>
<attribute name="Password" />
<attribute name="GCEnabled">false</attribute>
<attribute name="InvalidateOnError">false</attribute>
<attribute name="TimestampUsed">false</attribute>
<attribute name="Blocking">true</attribute>
<attribute name="GCInterval">120000</attribute>
<attribute name="IdleTimeout">1800000</attribute>
<attribute name="IdleTimeoutEnabled">false</attribute>
<attribute name="LoggingEnabled">false</attribute>
<attribute name="MaxIdleTimeoutPercent">1.0</attribute>
<attribute name="MinSize">0</attribute>
<!-- release on commit will release connections created
within a transaction
whenever the transaction is committed or rolledback --
>
<attribute name="ReleaseOnCommit">true</attribute>
<!-- save stack trace will remember the point where a
connection was created.
Only use with ReleaseOnCommit!! If a release
on commmit happens,
you will get a stack trace of where the
connection was created AND
NOT released. -->
<attribute name="SaveStackTrace">true</attribute>
</mbean>