camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From duncanto <tom_dun...@btinternet.com>
Subject Re: How to make a copy an Exchange in a Route segment
Date Thu, 09 Jan 2014 16:58:11 GMT

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.

Mime
View raw message