Handling Errors in Apache Camel

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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.