Error Handling in Apache Camel 1.6
The default error handler is DeadLetterChannel, but you may want to change it to LoggingErrorHandler, at least:
errorHandler(loggingErrorHandler(SampleRouteBuilder.class.getName()));
The next major version is most certainly going to use the DefaultErrorHandler in Apache Camel 2.0-M2.
http://camel.apache.org/dead-letter-channel.html
http://camel.apache.org/defaulterrorhandler.html
You might also use exception clauses.
Advertisement