On Thu, Jan 9, 2014 at 5:58 PM, duncanto <[email protected]> wrote:
>
> Yeah it should work ... but not within the choice() .. the change in the
> multicast recipient still effect the main message.
>
You still need to use a custom agg strategy and return oldExchange as
mentioned in previous mails.
>
> ....
> .choice()
> .when(header("foo").isEqualTo("myfoo"))
> // !!!! Is there a DSL definition I can add here to create a copy of
> the message exchange
> // passed to the fooRoute and protect the outer exchange ????
> .removeHeaders("*", "foo") // remove all but keep the foo header
> multicast().to("direct:fooRoute")
> .end()
>
> ......
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/How-to-make-a-copy-an-Exchange-in-a-Route-segment-tp5745772p5745804.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [email protected]
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io