Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 649CA9729 for ; Sat, 3 Mar 2012 15:35:11 +0000 (UTC) Received: (qmail 35492 invoked by uid 500); 3 Mar 2012 15:35:11 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 35456 invoked by uid 500); 3 Mar 2012 15:35:11 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 35447 invoked by uid 99); 3 Mar 2012 15:35:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Mar 2012 15:35:11 +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.215.45 as permitted sender) Received: from [209.85.215.45] (HELO mail-lpp01m010-f45.google.com) (209.85.215.45) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Mar 2012 15:35:06 +0000 Received: by lahe6 with SMTP id e6so4092449lah.32 for ; Sat, 03 Mar 2012 07:34:45 -0800 (PST) Received-SPF: pass (google.com: domain of claus.ibsen@gmail.com designates 10.112.23.39 as permitted sender) client-ip=10.112.23.39; Authentication-Results: mr.google.com; spf=pass (google.com: domain of claus.ibsen@gmail.com designates 10.112.23.39 as permitted sender) smtp.mail=claus.ibsen@gmail.com; dkim=pass header.i=claus.ibsen@gmail.com Received: from mr.google.com ([10.112.23.39]) by 10.112.23.39 with SMTP id j7mr6124977lbf.87.1330788885364 (num_hops = 1); Sat, 03 Mar 2012 07:34:45 -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=vmSGluJ2nkX0vNrvIGP8gGNaCugfsIcbnE6ARuNI4vY=; b=AX5EaFlti8TrLIpYXKm/oeNtoekOgrW1/SmMRWaFM0UAR2oE9RIbH8ZOeFoc6ye9Jh D0xoIRVPSzxG1nWNMmlFbTDvr8oldIyeBByrjqq6dq6AbKogFBNNMQpym1yLi67f1gJk 5Snk9cZ6VzeoWyKiBdo9Z3BnU6Xu5Chya16NhKZ4wVNlizr7hbx67Vok99j2g9OHQoaa JfjxhFKaRORKsc1/aj6NgWbvFNbup7tWzhQ14oypRRfExgsIYSitmDex0GBTwaTH4TQd VAMofV9qctudhSl5l2nLsR1Yb0Zu+7cT2BKsozul+NwA2PUoduTM4UMWuhz85uTUvfpp kZPQ== Received: by 10.112.23.39 with SMTP id j7mr5048634lbf.87.1330788885284; Sat, 03 Mar 2012 07:34:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.87.100 with HTTP; Sat, 3 Mar 2012 07:34:25 -0800 (PST) In-Reply-To: <1330783849034-5533706.post@n5.nabble.com> References: <1330538975066-5525681.post@n5.nabble.com> <4101792725898597996@unknownmsgid> <1330783849034-5533706.post@n5.nabble.com> From: Claus Ibsen Date: Sat, 3 Mar 2012 16:34:25 +0100 Message-ID: Subject: Re: Camel features and falling-back to Camel components To: dev@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Sat, Mar 3, 2012 at 3:10 PM, E.Gherardini wrote: > Hello Raul and thanks for replying! > > I am concerned about transactional camel plugs I need to hook up in my > component indeed. > > I am aware about the async routing engine, but I do not know how to "join" > camel transactions from my component, or, to better say: what should the > component to allow camel control it in a transactional way ? > Its Spring Transaction manager which orchestrates the transaction. So look into how you can enlist your resource into a Spring TX manager. The just ensure the that the processing of the message occurs in a Spring managed transacted (eg using a transaction template, and issue the work in a doInTransaction method). As well as the routing engine will run in synchronous mode due Spring TX manager need to run in the same TX to work properly. See this source for details https://svn.apache.org/repos/asf/camel/trunk/components/camel-spring/src/main/java/org/apache/camel/spring/spi/TransactionErrorHandler.java > Thanks a lot, > Emanuele > > -- > View this message in context: http://camel.465427.n5.nabble.com/Camel-features-and-falling-back-to-Camel-components-tp5525681p5533706.html > Sent from the Camel Development mailing list archive at Nabble.com. -- Claus Ibsen ----------------- FuseSource Email: cibsen@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/