Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7C66710FC5 for ; Mon, 15 Jul 2013 20:11:44 +0000 (UTC) Received: (qmail 57187 invoked by uid 500); 15 Jul 2013 20:11:44 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 56944 invoked by uid 500); 15 Jul 2013 20:11:44 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 56936 invoked by uid 99); 15 Jul 2013 20:11:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jul 2013 20:11:43 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of don_gatos@hotmail.com does not designate 216.139.250.139 as permitted sender) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jul 2013 20:11:39 +0000 Received: from [192.168.236.139] (helo=joe.nabble.com) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Uyp6j-0005uP-NP for users@activemq.apache.org; Mon, 15 Jul 2013 13:10:53 -0700 Date: Mon, 15 Jul 2013 13:10:38 -0700 (PDT) From: gastonscapusio To: users@activemq.apache.org Message-ID: <1373919038707-4669324.post@n4.nabble.com> Subject: ActiveMQ XA JBoss 6.1 problem MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, 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 (/messageListener.onMessage(message)/). 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? Regards, Gaston -- View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-XA-JBoss-6-1-problem-tp4669324.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.