December 2013
Intermediate to advanced
424 pages
9h 7m
English
The default behavior for Camel is to call your exception (or error) handler, and rethrow the exception to the caller. This recipe will show how to mark that exception as handled, which tells Camel that it should not consider this to be an error and nothing further needs to be done, that is, do not rethrow that particular exception to the consuming endpoint.
The Java code for this recipe is located in the org.camelcookbook.error.exception package. The Spring XML files are located under src/main/resources/META-INF/spring and prefixed with exception.
Within the onException DSL statement, specify a handled statement with a predicate that will indicate if the exception has been handled (predicate ...
Read now
Unlock full access