removeAbandoned tag in jboss
In Tomcat, to remove abandoned connections, I have added the following tags in DB config.xml file without updating application code.
<parameter>
<name>removeAbandoned</name>
<value>true</value>
</parameter>
<!--Use the removeAbandonedTimeout parameter to set the number of
seconds a dB connection has been idle before it is considered abandoned. -->
<parameter>
<name>removeAbandonedTimeout</name>
<value>60</value>
</parameter>
<parameter>
<name>logAbandoned</name>
<value>true</value>
</parameter>
Now, I am expecting the similar tags to add to mysql-ds.xml file in case of JBOSS without updating application code. Bz, we had only ear file.
|