The default transaction timeout is set to 300 seconds (5 minutes) by default. We can change this value as per our requirement.

In JBoss EAP 4.x

Navigate to Container/Profile conf directory and Open jboss-service.xml file.

Change the “TransactionTimeout” attribute value as per your requirement.

<!– JBoss Transactions JTA –>
<mbean code=”com.arjuna.ats.jbossatx.jta.TransactionManagerService”
name=”jboss:service=TransactionManager”>
<attribute name=”TransactionTimeout”>300</attribute>
<attribute name=”ObjectStoreDir”>${jboss.server.data.dir}/tx-object-store</attribute>
</mbean>

It is contolled by the “TransactionTimeout” attribute of the “jboss:service=TransactionManager” MBean in

  • $JBOSS_HOME/server/$PROFILE/conf/jboss-service.xml:

In JBoss EAP 5.x

Navigate to Container/Profile conf directory and Open jboss-service.xml file.

Change the “TransactionTimeout” attribute value as per your requirement.

<bean name=”TransactionManager” class=”com.arjuna.ats.jbossatx.jta.TransactionManagerService”>
…(snip)…
<property name=”transactionTimeout”>300</property>
<property name=”objectStoreDir”>${jboss.server.data.dir}/tx-object-store</property>
…(snip)…

It is controlled by the “transactionTimeout” attribute of the “TransactionManager” bean in

  • $JBOSS_HOME/server/$PROFILE/deploy/transaction-jboss-beans.xml: