Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 10545 invoked from network); 15 Jul 2008 15:40:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Jul 2008 15:40:00 -0000 Received: (qmail 93428 invoked by uid 500); 15 Jul 2008 15:40:00 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 93413 invoked by uid 500); 15 Jul 2008 15:40:00 -0000 Mailing-List: contact camel-user-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-user@activemq.apache.org Delivered-To: mailing list camel-user@activemq.apache.org Received: (qmail 93402 invoked by uid 99); 15 Jul 2008 15:40:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jul 2008 08:40:00 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jul 2008 15:39:04 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KImci-0005VA-8s for camel-user@activemq.apache.org; Tue, 15 Jul 2008 08:39:28 -0700 Message-ID: <18468348.post@talk.nabble.com> Date: Tue, 15 Jul 2008 08:39:28 -0700 (PDT) From: cmoulliard To: camel-user@activemq.apache.org Subject: Re: Is it possible to send a message towards 2 endpoints but the message is unmarshalled for one of the two destinations ? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: cmoulliard@gmail.com References: <18315419.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Even if we achieve the same result, what you propose is not really // because 1st we call the bean to save the content and next we unmarshall it before to commit it in the queue. Is there a wiki page describing which resources are transactional in Camel ? Regards, Charles James.Strachan wrote: > > 2008/7/7 cmoulliard : >> >> Hi, >> >> Is it possible to send a message towards 2 endpoints (in //) but the >> message >> is unmarshalled for one of the two destinations (and not for the other) >> and >> if an error occurs everything is rollbacked ? >> >> Idea: >> >> From("file:c:///temp") >> .parrallel( >> .to("bean:saveContent".unmarshall(jaxb)) >> .to("activemq:queue.myqueue")); > > This should do what you want... > > from("file://temp"). > beanRef("saveContent"). > unmarshall().jaxb(). > to("activemq:myqueue") > > though the rollback only applies to transactional resources - which in > the above route is only the activemq endpoint. > > -- > James > ------- > http://macstrac.blogspot.com/ > > Open Source Integration > http://open.iona.com > > ----- Enterprise Architect Xpectis 12, route d'Esch L-1470 Luxembourg Phone +352 25 10 70 470 Mobile +352 621 45 36 22 e-mail : cmoulliard@xpectis.com web site : www.xpectis.com -- View this message in context: http://www.nabble.com/Is-it-possible-to-send-a-message-towards-2-endpoints-but-the-message-is-unmarshalled-for-one-of-the-two-destinations---tp18315419s22882p18468348.html Sent from the Camel - Users mailing list archive at Nabble.com.