You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by SaroKrish <sa...@gmail.com> on 2013/06/12 17:10:12 UTC
using when after Recipient List
Am trying to do something like the below,
from("direct:Reg").choice().
when(header("event").contains("sign")).multicast().to("direct:b",
"direct:c")
.when(header("event").contains("login")).multicast().to("direct:b",
"direct:c");
but I can't able to use .when (second part after the first when(). can some
one please help me on this.
--
View this message in context: http://camel.465427.n5.nabble.com/using-when-after-Recipient-List-tp5734138.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: using when after Recipient List
Posted by SaroKrish <sa...@gmail.com>.
Thanks for the hint, i see endchoice.when.. thx
--
View this message in context: http://camel.465427.n5.nabble.com/using-when-after-Recipient-List-tp5734138p5734157.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: using when after Recipient List
Posted by Christian Müller <ch...@gmail.com>.
If I remember right, there is an endWhen(). Can you try it?
Best,
Christian
Sent from a mobile device
Am 12.06.2013 11:42 schrieb "SaroKrish" <sa...@gmail.com>:
> Am trying to do something like the below,
>
> from("direct:Reg").choice().
> when(header("event").contains("sign")).multicast().to("direct:b",
> "direct:c")
> .when(header("event").contains("login")).multicast().to("direct:b",
> "direct:c");
> but I can't able to use .when (second part after the first when(). can some
> one please help me on this.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/using-when-after-Recipient-List-tp5734138.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>