Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 94395 invoked from network); 8 Jul 2006 17:42:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Jul 2006 17:42:03 -0000 Received: (qmail 55854 invoked by uid 500); 8 Jul 2006 17:42:03 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 55687 invoked by uid 500); 8 Jul 2006 17:42:03 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 55677 invoked by uid 99); 8 Jul 2006 17:42:03 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Jul 2006 10:42:03 -0700 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=RCVD_IN_NJABL_PROXY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [208.176.63.109] (HELO localhost.ldsys.net) (208.176.63.109) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Jul 2006 10:42:01 -0700 Received: from [10.0.2.1] (ppp-68-251-75-59.dsl.chcgil.ameritech.net [68.251.75.59]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by localhost.ldsys.net (Postfix) with ESMTP id 31E674667B for ; Sat, 8 Jul 2006 12:48:37 -0500 (CDT) Message-ID: <44AFEE48.3020906@ldsys.net> Date: Sat, 08 Jul 2006 12:41:28 -0500 From: "Christopher G. Stach II" User-Agent: Thunderbird 1.5.0.4 (X11/20060603) MIME-Version: 1.0 To: activemq-users@geronimo.apache.org Subject: Re: ActiveMQ 4 + Jencks + XA Transactions References: <5196977.post@talk.nabble.com> <5213459.post@talk.nabble.com> <5217720.post@talk.nabble.com> In-Reply-To: <5217720.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Johan Brelet wrote: > Perhaps I said a bit too fast that it was working fine... :) > > Here is the problem I have now : > In my tests I try to force the broker to rollback a global XA transaction > when receiving a JMS Message. To do that, the onMessage() method throws a > RuntimeException. So, I expect the broker to catch this exception, and then > to rollback transaction, and later to try again delivering the message. > But with ActiveMQ4.1 and latest Jencks from SVN HEAD, I don't understand the > behaviour of the broker... The exception doesn't cause the transaction to > rollback, so it stays active, and the broker do not redeliver the message. > Here is a part of logs : [...] > I don't really understand what's going on...Am I doing something wrong ? Or > is it a problem with ActiveMQ 4.1 ? According to the spec, onMessage should not throw RuntimeException. Get a handle on the current Transaction and setRollbackOnly(). -- Christopher G. Stach II