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 4F9E2652B for ; Mon, 13 Jun 2011 08:22:05 +0000 (UTC) Received: (qmail 59884 invoked by uid 500); 13 Jun 2011 08:22:04 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 59807 invoked by uid 500); 13 Jun 2011 08:22:04 -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 59799 invoked by uid 99); 13 Jun 2011 08:22:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jun 2011 08:22:03 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=FREEMAIL_FROM,RFC_ABUSE_POST,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jun 2011 08:21:57 +0000 Received: from joe.nabble.com ([192.168.236.139]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1QW2Ot-0007Ey-JO for users@activemq.apache.org; Mon, 13 Jun 2011 01:21:35 -0700 Date: Mon, 13 Jun 2011 01:21:35 -0700 (PDT) From: James Black To: users@activemq.apache.org Message-ID: <1307953295591-3593386.post@n4.nabble.com> In-Reply-To: <1307613989531-3585092.post@n4.nabble.com> References: <1306927111700-3565540.post@n4.nabble.com> <1307014862475-3568151.post@n4.nabble.com> <1307613989531-3585092.post@n4.nabble.com> Subject: Re: Transaction not started XA problems MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Ok ignore my previous message as that appears to be a separate issue. The problem with the transaction not started errors had not gone away but was simply not occurring, it came back on Friday but I now believe I have the root cause of the issue. The Atomikos JTA Properties documentation defines a property: com.atomikos.icatch.tm_unique_name The solution was to set this in each web application to a unique value. The documentation states it is used when: "you plan to run more than one transaction manager against one database you must set this property to a unique value or you might run into duplicate transaction ID (XID) problems." Well because we were running three separate Tomcat applications on the same machine they were all using the same unique_name based on the machine's IP address. None of these were sharing Atomikos logs so we did not think this property was an issue. As all our Tomcat (separate instances) were all connected to the same ActiveMQ instance, ActiveMQ was receiving XIDs from different applications that were the same. This seems to be the source of the "Transaction not started" errors generated by Atomikos. This is also a subtle issue as it does not necessarily always occur. It was more likely to occur when we moved to three separate Tomcat instances as opposed to two. It also seemed to be more likely to happen when the 3 instances were started very close to each other as opposed to being staggered in their start-up. I hope this helps someone else out so they do not have to go through this pain! -- View this message in context: http://activemq.2283324.n4.nabble.com/Transaction-not-started-XA-problems-tp3565540p3593386.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.