Error handling in CamelPage comment added by Edward OstError handlers and the onException clause in Camel only handle Exceptions. Faults thrown by endpoints are not handled by default. In order to enable errorHandlers and onExceptions clauses to manage exceptions the handleFault property must be set. It can be set on context, RouteBuilder, or route scope. To set it on the context scope with JavaDSL call getContext().setHandleFault(true) To set it with Spring DSL set the handleFault attribute of the context <camelContext handleFault="true"> To set it with route scope, from("vm:myendpoint").setHandleFault(true) To set it with Spring DSL set the handleFault attribute of the context <route handleFault="true">
Change Notification Preferences
View Online
|
|
- [CONF] Apache Camel > Error handling in Camel confluence
- [CONF] Apache Camel > Error handling in Camel confluence