Simples Assim

Error Handling in Apache Camel 1.6

leave a comment »

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

Written by Fernando Ribeiro

July 18, 2009 at 4:19 pm

Posted in Software

Tagged with , ,

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 )

Twitter picture

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

Facebook photo

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

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 781 other followers