Yeah it should work ... but not within the choice() .. the change in the
multicast recipient still effect the main message.
....
.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.