I have camel 10 camel routes something like below:
@AllArgsConstructor
public class MyCamelRoute extends RouteBuilder {
/**
* {@inheritDoc}
*/
@Override
public void configure() throws Exception {
}
}
Above MyCamelRoute
is created using below code which loads Camel route into Spring container:
@Bean("myCamelRoute")
public RouteBuilder createMyCamelRoute () {
return new MyCamelRoute();
}
Now I need to have a global exception handler across the Camel context – covering all routes.