Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-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 EB8ED10066 for ; Thu, 16 Jan 2014 14:15:04 +0000 (UTC) Received: (qmail 74281 invoked by uid 500); 16 Jan 2014 14:15:03 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 74241 invoked by uid 500); 16 Jan 2014 14:15:02 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 74228 invoked by uid 99); 16 Jan 2014 14:15:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jan 2014 14:15:01 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.223.173 as permitted sender) Received: from [209.85.223.173] (HELO mail-ie0-f173.google.com) (209.85.223.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jan 2014 14:14:57 +0000 Received: by mail-ie0-f173.google.com with SMTP id e14so3671098iej.18 for ; Thu, 16 Jan 2014 06:14:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=TeI2L3bF3NV3isVAh+ImBGKN/UjwrjglYlFn0AxWn4Y=; b=tm9ug9OHM720oX8YzAA8PMTl1JYvQLFNn0P1RDF1mU2ViUuqDkYfbZlHoV+u31srrU ooxde3PhEHBqBO0s5lWL4659izWyogIbkxWgL+q32Mk+pQNm+wxBTcXmKpxWmkLtTTHs jC5FtELZ2+0jo7RlNTfHb5QcFWkEJrzTvcAJR4Z/WSdiwhNzEwDS2wsiR7yq0pltjoCT K3/DxdijTPBzfmsMvBvNaNAYXbPkXfjjbCzStafygnYxRvqltVsJmjpUEzoP3hrW5hZ/ nWTH/4RNzVYfhbd94LfNtSq7Lb9qGmZfS9TyHTBWyOINWo1XV9e3UTVizr2fJE1I1e6Y RLgA== X-Received: by 10.50.232.9 with SMTP id tk9mr9721035igc.27.1389881676408; Thu, 16 Jan 2014 06:14:36 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.133.72 with HTTP; Thu, 16 Jan 2014 06:14:16 -0800 (PST) In-Reply-To: <1389866252273-5746041.post@n5.nabble.com> References: <1389866252273-5746041.post@n5.nabble.com> From: Claus Ibsen Date: Thu, 16 Jan 2014 15:14:16 +0100 Message-ID: Subject: Re: Transaction spanning multiple routes separated by seda queue To: "users@camel.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Jan 16, 2014 at 10:57 AM, gilboy wrote: > Hi > > I have a route to consume a message from a JMS Topic, do some processing on > it and then place on a SEDA Queue. > > My second route will consume the message from the SEDA queue and place on a > different JMS Topic. > > I want to ensure that the message only gets de-queued from the first Topic > which it has successfully been placed on the 2nd topic. Is this possible? > Well almost. If you use transacted jms, then the consumer on the jms topic will not ack the msg until Camel has routed the message and there was no error. So when you send to the seda queue, then if you do request/reply then it will block here waiting for the 2nd route to complete. And if that completes without any exception, then it continue and the 1st consumer can ack the message. But if you involve other resources such as JDBC and want to use XA then you would need that work to happen on the same thread (very often that is). If you have Camel in Action book, read chapter 9, and see section 9.3 about local vs global tx's. > Thanks in advance > Joe > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/Transaction-spanning-multiple-routes-separated-by-seda-queue-tp5746041.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cibsen@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen Make your Camel applications look hawt, try: http://hawt.io