We have the task of starting the timer in the JBoss 5.1.0.GA application, and the problem is that we cannot change the transaction time. This long Lucene indexing may take longer than the default 300 second limit.
The question is how to change the timeout value by adding @TransactionTimeout (1800) to the working method, or the class had no effect.
Edit: setting this up in deploy / transaction-jboss- beans.xml works fine:
<property name="transactionTimeout">1800</property>
but the annotation does not seem to affect either timer initiated or normal stateless EJBs.
Petteri hietavirta
source share