Something like: from("direct:foo").wireTap("direct:wireTapTbd") .choice() .when(header("VALUE").isEqualTo("A")) .to("direct:firstChoice") .otherwise() .to("direct:secondChoice");
On Wed, Aug 28, 2013 at 3:46 PM, Dale King <dalewk...@gmail.com> wrote: > Just wiretap to a content based router that directs it accordingly. > > > On Wed, Aug 28, 2013 at 3:26 PM, Christopher Gardner < > chris.r.gard...@gmail.com> wrote: > > > Is there a spring and/or Java DSL way to conditionally wiretap? Example > > would be if a header has one value, I'd like to wiretap to "direct:a", if > > it has another value to "direct:b". The only thing I can think of now is > > to wiretap to "direct:determineWhereToWiretap", which includes a > processor > > on the route to actually check such a header value and route accordingly. > > > > > > -- > Dale King >