Hi Reji,

You may check the Error Handler:
https://camel.apache.org/manual/latest/error-handler.html

Regards,

Raymond

Op ma 1 mrt. 2021 om 03:23 schreef Reji Mathews <contactr...@gmail.com>:

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

Reply via email to