We have a timer service triggered task in JBoss 5.1.0.GA application and the problem is that we cannot change the transaction time out. This long Lucene indexing can take longer than the default 300 second limit.
The question is how to change the timeout value, adding @TransactionTimeout(1800) to the worker method or the class did not have any effect.
Edit: Setting this in deploy/transaction-jboss-beans.xml works fine:
<property name="transactionTimeout">1800</property>
but the annotation doesn't seem to have effect on either timer initiated or normal stateless EJBs.
I am using EJB3 with Jboss 5.1.0.GA and have successfully set this value in
JBOSS_HOME/deploy/transaction-jboss-beans.xml
.The default was 300 in
<property name="transactionTimeout">300</property>
You can manually declare the timeout period and create a timer in Session Bean.
Below is sample code of my Stateless Bean :
TransactionTimeout is it a MDB? they have a different annotation. The link gives the various options for setting the transation timeout either via code on config files.
Transaction timeout,default settings in JBOSS EPA 7.1 version is 300.
Add this line(
<coordinator-environment enable-tsm-status="true" default-timeout="1200"/>
) add the configuration file in path "..standalone/configuration/standalone.xml"Not related to Jboss but you can set arjuna transaction timeout via com.arjuna.ats.arjuna.coordinator.defaultTimeout=60 property.
Try setting this in jboss-service.xml:
This is a server based configuration, so look for conf/jboss-service.xml under your server directory.