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.
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
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
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.
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