activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gastonscapusio <>
Subject ActiveMQ XA JBoss 6.1 problem
Date Mon, 15 Jul 2013 20:10:38 GMT
We have some XA problems using ActiveMQ ra within Jboss 6.1 (tested in v5.6,
v5.7 and v5.8 with the same result).
The ActiveMQ is working in standalone mode (outside jboss).
There are two resources involved in the transaction (activemq and db), both
definied as xa resources.

ActiveMQ does a trx commit when there is a transaction timeout
(/EJBTransactionRolledbackException/). In this way we are losing messages
when there is any timeout.
We have seen that the activemq connections are enlist in XA.
The attribute /transactionContext/ from /ActiveMQSession/ class has the
global transaction reference (xid) before calling the MDB
When the timeout is reached and the RuntimeException is throwned, the
transactionContext losed the xid reference.
Later, when ActiveMQSession call the method
/transactionContext.isInXATransaction()/ the result is false because there
is no xid reference.

This situation only happened when the MDB calls other EJB (Stateless) with
CMT - /TransactionAttributeType.REQUIRES_NEW/, and the exception is throwed
inside the Stateless.

Any ideas?


View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message