Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 94258 invoked from network); 10 Jul 2006 13:50:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Jul 2006 13:50:27 -0000 Received: (qmail 73797 invoked by uid 500); 10 Jul 2006 13:50:27 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 73632 invoked by uid 500); 10 Jul 2006 13:50:26 -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 73623 invoked by uid 99); 10 Jul 2006 13:50:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Jul 2006 06:50:26 -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; Mon, 10 Jul 2006 06:50:25 -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 D971E46741 for ; Mon, 10 Jul 2006 08:57:07 -0500 (CDT) Message-ID: <44B25AFD.7030201@ldsys.net> Date: Mon, 10 Jul 2006 08:49:49 -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> <44AFEE48.3020906@ldsys.net> <5251236.post@talk.nabble.com> In-Reply-To: <5251236.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: > I misunderstand something (sorry but I'm an ActiveMQ / JCA newbie). When > using inbound communications, I thought that transactions were managed > transparently by the JCA Resource Adapter and that the only way to rollback > a transaction was to throw an error... So how can I do to handle the current > transaction in the onMessage() method ? In my Spring config file, the only > class that is linked with JTA transactions is the Jencks JCA connector (via > the transactionManager property) : If you are using Spring's transaction support, something like: TransactionInterceptor.currentTransactionStatus().setRollbackOnly(); -- Christopher G. Stach II