Marek Nazarko wrote on Apr 06, 2009 13:40:
But it doesn't work.
It's strange there is no annotation, but I have to define jboss.xml...
For test I set global timeout in jboss-service.xml for 5 sec.
Then i put a breakpoint in first line of my method in statefull bean and after 5 seconds I see in log13:35:09,742 WARN [arjLoggerI18N ?] [com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator_4] TwoPhaseCoordinator.afterCompletion - returned failure for com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple@1c75848 13:35:09,742 WARN [arjLoggerI18N ?] [com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator_4] TwoPhaseCoordinator.afterCompletion - returned failure for com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple@7509f0
The operation of my MDB is ok. Property TransactionTimeout working ok. At the end of time, these same lines of WARN are presented and the method onMessage is called again.
I want to treat this timeout. If the timeout happens I do something and get out of onMessage. How?
Jere!