camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raul Kripalani <r...@evosent.com>
Subject Re: Two routes, two transactions
Date Wed, 03 Oct 2012 18:03:17 GMT
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úl.

Sent from a mobile device
On 3 Oct 2012 17:51, "lolo" <Laurent.Gaertner@lchclearnet.com> 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-tp5720484p5720503.html
> Sent from the Camel Development mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message