.from("seda:rest_upload")
.process(new Processor() {
@Override
public void process(Exchange exchange) {
if(true){
throw new RuntimeException();
}})
.to("seda:parsed_csv")
.onException(Exception.class).process(new Processor() {
@Override
public void process(Exchange exchange) throws Exception {
logger.warn("Error");
}
});
But logger.warn("Error");
was not invoked.
What do I wrong?
How can I register global exception handler for camel route?