activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From juanlopez <>
Subject ActiveMQ XA JBoss 6.1 problem
Date Wed, 21 Aug 2013 16:21:26 GMT
Hi I have the same problem in this post 
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?


I see jira related this post
but I have version 5.6 Is possible move this patch from 5.8 to 5.6.  If I
only update this class ActiveMQSession is enough for resolved this issue,   
But I don't know this solution is only availabel for version 5.8 and not for
Can you help me about this ?

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

View raw message