Re: Reroute from onException Handler Processor

2014-01-17 Thread alex
so simple, thank you very much :) -- View this message in context: http://camel.465427.n5.nabble.com/Reroute-from-onException-Handler-Processor-tp5746043p5746127.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Reroute from onException Handler Processor

2014-01-16 Thread alex
It works when I config an interceptor and set a header value in "onException-handler": interceptFrom() .when(header("somethingFailed").isEqualTo(Boolean.TRUE)) .process(new Processor() { @Override public void proce

Re: Reroute from onException Handler Processor

2014-01-16 Thread stephane baudouin
just inside of the onexception block, you do not need any intercept in your case : @Override public void configure() throws Exception { onException(Exception.class) .maximumRedeliveries(10) .redeliveryDelay(2500) .handled(true) .to("direct:RO

Re: Reroute from onException Handler Processor

2014-01-16 Thread alex
you got it from here: http://camel.apache.org/intercept.html i guess? i have no idea how to use this: interceptSendToEndpoint("mock:foo").skipSendToOriginalEndpoint() .transform(constant("Bye World")).to("mock:detour"); inside a onException part or how to trigger the interceptSendToEndpoint.

Re: Reroute from onException Handler Processor

2014-01-16 Thread stephane baudouin
Hi, something like .skipSendToOriginalEndpoint() .to("direct:ROUTE_3") inside the onException should do the job or am I wrong ? -- View this message in context: http://camel.465427.n5.nabble.com/Reroute-from-onException-Handler-Processor-tp5746043p5746053.html Sent from t