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 83985D7F6 for ; Wed, 3 Oct 2012 18:03:45 +0000 (UTC) Received: (qmail 98173 invoked by uid 500); 3 Oct 2012 18:03:45 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 98141 invoked by uid 500); 3 Oct 2012 18:03:45 -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 98130 invoked by uid 99); 3 Oct 2012 18:03:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2012 18:03:45 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of raul@evosent.com designates 209.85.215.45 as permitted sender) Received: from [209.85.215.45] (HELO mail-la0-f45.google.com) (209.85.215.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2012 18:03:39 +0000 Received: by lahm13 with SMTP id m13so3861304lah.32 for ; Wed, 03 Oct 2012 11:03:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type:x-gm-message-state; bh=UMaPErKvFICee0y8pODvl4bcyE49Fj2H7npYGzo8M2Q=; b=LgWpPn/fzntcwM2s7JR7hyHCkXN/ZluGIUS6QFDoawI8zjN/VjytEDBcxvPOUc0j4Z eAKpEzf3Bd3oDVYdr/+sC4ZaGveGwWbxHZBm1RZD54TzjyAwYOt5s8UUCCSbGkU9Rq8c zBhaOYN2wDhOQssdYQJNFd1zejxwPmLeBsal//zcJzAB8fwJ8wLcbKp6jKqdy3eErS73 WSQod/yFlBpdyMI3ResBIQ5Be8DNYczE8zL9aHZ5i1DdCm6x1EgDEe1r+ZopycbZfEVl ozcmLQFOjCXB7hSUOnOE0ldCzadnQcwC+kJz3lHm6eg01PSt8V5BWo9u8vJ85cH3Bg1k x2Vg== MIME-Version: 1.0 Received: by 10.152.106.237 with SMTP id gx13mr2306877lab.46.1349287397724; Wed, 03 Oct 2012 11:03:17 -0700 (PDT) Received: by 10.114.16.230 with HTTP; Wed, 3 Oct 2012 11:03:17 -0700 (PDT) X-Originating-IP: [90.172.104.203] Received: by 10.114.16.230 with HTTP; Wed, 3 Oct 2012 11:03:17 -0700 (PDT) In-Reply-To: <1349282560040-5720503.post@n5.nabble.com> References: <1349274550706-5720484.post@n5.nabble.com> <1349276744105-5720491.post@n5.nabble.com> <1349282560040-5720503.post@n5.nabble.com> Date: Wed, 3 Oct 2012 19:03:17 +0100 Message-ID: Subject: Re: Two routes, two transactions From: Raul Kripalani To: dev@camel.apache.org Content-Type: multipart/alternative; boundary=f46d040716130a938d04cb2b748e X-Gm-Message-State: ALoCoQlDnKDVzpwfFghb2SLBBoCK3XOHD04Vu6328U9ZZY31OPl3Uv6CYjCo8VsxOEraGUi6gCPH X-Virus-Checked: Checked by ClamAV on apache.org --f46d040716130a938d04cb2b748e Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable You need to use endpoint URIs, e.g. direct:route1 if you are using the Direct Component. Check out any tutorial if you're in doubt. If you want route2 to be called passing as input the output of route1, then your code looks okay as long as you change the endpoints URIs. If you want route2 to be called with the original input that came through direct:start, you should use a multicast with parallel processing off. Check out the multicast DSL doc page. There are clear examples there. Let me know if this helps. Ra=FAl. Sent from a mobile device On 3 Oct 2012 17:51, "lolo" wrote: > Thanks for your help. > > I'm using java DSL, how should I do that? > > from("direct:mainRoute"). > to("route1"). > to("route2"). > end(); > > Please note that in route2 I need to see the entities that are persisted = in > route1 > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Two-routes-two-transactions-tp5720484p5= 720503.html > Sent from the Camel Development mailing list archive at Nabble.com. > --f46d040716130a938d04cb2b748e--