-
1. Re: Setting transaction timeout in JBoss 5.0.1.GA
prasanthreddy Apr 14, 2009 3:41 PM (in response to prasanthreddy)Please ignore the above post.
The file I modified is jboss-4.0.5.GA/server/default/conf/jboss-service.xml<mbean code="org.jboss.tm.TransactionManagerService" name="jboss:service=TransactionManager" xmbean-dd="resource:xmdesc/TransactionManagerService-xmbean.xml"> <attribute name="TransactionTimeout">1800</attribute> <!-- set to false to disable transaction demarcation over IIOP --> <attribute name="GlobalIdsEnabled">true</attribute> <depends optional-attribute-name="XidFactory">jboss:service=XidFactory</depends> <!-- Transaction Integrity Checking --> <!-- Force a rollback if another thread is associated with the transaction at commit --> <!--depends optional-attribute-name="TransactionIntegrityFactory" proxy-type="org.jboss.tm.integrity.TransactionIntegrityFactory"> <mbean code="org.jboss.tm.integrity.FailIncompleteTransaction" name="jboss:service=TransactionManager,plugin=TransactionIntegrity"/> </depends--> </mbean>
-
2. Re: Setting transaction timeout in JBoss 5.0.1.GA
peterj Apr 14, 2009 3:50 PM (in response to prasanthreddy)In 5.0.x (and 4.2.x), transactions are configured in the server/xxx/conf/jbossjta-properties.xml file. I think the txReaperTimeout is what you are looking for. Here are the docs: http://www.redhat.com/docs/en-US/JBoss_Enterprise_Application_Platform/4.3.0.cp04/html/JBoss_TS_Programmers_Guide/ch03.html#d0e1516
-
3. Re: Setting transaction timeout in JBoss 5.0.1.GA
prasanthreddy Apr 15, 2009 6:25 PM (in response to prasanthreddy)Thanks for the link.
Seems like the reaperTimeout is the sleep time for the reaper itself.
com.arjuna.ats.arjuna.coordinator.defaultTimeout seems to be the maximum time a transaction can take before getting rolled back by the reaper.
I tried setting the defaultTimeout but didn't see like it worked.
In the deploy folder there is a file called transaction-jboss-beans.xml in this file I have set transactionTimeout that did the trick.<bean name="TransactionManager" class="com.arjuna.ats.jbossatx.jta.TransactionManagerService"> <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss:service=TransactionManager", exposedInterface=com.arjuna.ats.jbossatx.jta.TransactionManagerServiceMBean.class, registerDirectly=true)</annotation> <property name="transactionTimeout">1800</property> <property name="objectStoreDir">${jboss.server.data.dir}/tx-object-store</property> <property name="mbeanServer"><inject bean="JMXKernel" property="mbeanServer"/></property>