I am trying to build a camel context from scratch using very basic API's (Not with the RouteBuilder).
Started off with an instance of DefaultCamelContext class in plain vanilla java and populated some route definitions into the context as follows myCamelContext.addRouteDefinitions(routeDefinitionService.generateRouteDefinitions()) myCamelContext.start() My custom method here generates a List of RoleDefinitions and adds it to my myCamelContext. It works great and I can see my context starts with all those routes. I need to add an onException handler as global scoped in this context. If anyone has a sample code snippet on how this can be done, would be great. Cheers Reji