Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0A24B200B94 for ; Sat, 17 Sep 2016 15:26:31 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 07376160ABB; Sat, 17 Sep 2016 13:26:31 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 48490160ACD for ; Sat, 17 Sep 2016 15:26:30 +0200 (CEST) Received: (qmail 83898 invoked by uid 500); 17 Sep 2016 13:26:24 -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 83885 invoked by uid 99); 17 Sep 2016 13:26:23 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Sep 2016 13:26:23 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 703CB1805B4 for ; Sat, 17 Sep 2016 13:26:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.492 X-Spam-Level: X-Spam-Status: No, score=0.492 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id u-e4PuQ6c_Fi for ; Sat, 17 Sep 2016 13:26:20 +0000 (UTC) Received: from mail-qt0-f174.google.com (mail-qt0-f174.google.com [209.85.216.174]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 2CC415F3DA for ; Sat, 17 Sep 2016 13:26:20 +0000 (UTC) Received: by mail-qt0-f174.google.com with SMTP id 11so54606329qtc.0 for ; Sat, 17 Sep 2016 06:26:20 -0700 (PDT) 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; bh=Qjar+cGL6uI0hR23Ob21PVqc2s7oSlkZ84TIkiGbXFM=; b=Ynb6QTXATWPliE1tnWpl+N9JU1OiesuaYjkP8CXNBCIpi67UpmGkMGtRFb1dgraJOR AMLhzdKsNBYpS3hbzWD7sYKGA961RuExZGOK+guURpF3RbMRK0PfsX62ZKLZCPaXe2rB ejTkwy2moHCWYlNH95YIAto/iqvFikTrDVNPJyaAnL+K/5wB4mv+vpvnKuSEQNPWe5I1 bnGm4UKt5yKxZPeCL2J2E8iZy+CXXKuKaSZdsNkY/xqDfVJgT9Mw+AjhZorzMqFhNJcB J+YgV0E1wZmhNxV0Gb67H1vHyrwlxPOHiclHfv9RoekOPn3mOElctuWdVes/fy404HqQ UZLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=Qjar+cGL6uI0hR23Ob21PVqc2s7oSlkZ84TIkiGbXFM=; b=SZ/q0HfnX8kJ07w/007uthO9OfErVRFZ6nEqWYZsgMlN443OlMmZc1rg/e1i/FQq4B Kp9RL85Yeo/po0xM2NFgvDqvODqtlaw9i1bsT8ijt0/I7GjxjCHek7FF+Brp18nQ2hv2 jn4GqxwgDQOKIXO6nhLaihbDcBYRO57aVieAgEIqBhxoFZ+yOi9PQlraDSQC/xdO1g6+ R32KkXgpRJ5w03pMPCN3Po8cAhDG7MKLXDnnuL+kOcD0yucxFRbiSTv5sdYX+x57yQf2 8fod+3+CMm20gZPKAYaUcubcjBZNk5HJKuYzsOVzgRDqL+TT351hK4ZYZRiKEAVvhKAs 5bug== X-Gm-Message-State: AE9vXwPH2dyVr8PrltgljQJZ5CbQ4v/6OS0Itmzy2BcjiFqH8dheYzNr63C4gb3X0K4gwevzzrCPkQq0Oy4Whw== X-Received: by 10.200.37.182 with SMTP id e51mr20815016qte.12.1474118779136; Sat, 17 Sep 2016 06:26:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.37.120 with HTTP; Sat, 17 Sep 2016 06:25:58 -0700 (PDT) In-Reply-To: <1474114874265-5787668.post@n5.nabble.com> References: <1474087020232-5787657.post@n5.nabble.com> <1474114874265-5787668.post@n5.nabble.com> From: Claus Ibsen Date: Sat, 17 Sep 2016 15:25:58 +0200 Message-ID: Subject: Re: Transaction management when multicasting within a route To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 archived-at: Sat, 17 Sep 2016 13:26:31 -0000 You can do the stuff that should not participate in the transaction in parallel, but all the DB updates etc should be single threaded and sequential. There is no free lunch when it comes to TX and especially if you use XA with 2-phase commit. On Sat, Sep 17, 2016 at 2:21 PM, sairam75 wrote: > Thanks for the response Claus. > > Agreed that the transaction should be done in a single transaction. The idea > behind having multicasting is, we provide services and time complexity is > one of our major concerns. Hence we have multiple threads for invoking > independent write/update calls. In this case, for transaction management we > would need to sacrifice the time and can make all the calls as sequential. > So there isn't a way to manage as a transaction though when there are > multiple threads. > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/Transaction-management-when-multicasting-within-a-route-tp5787657p5787668.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2