11 Error handling

This chapter covers

  • Understanding error handling
  • Knowing where and when Camel’s error handling applies
  • Using the various error handlers in Camel
  • Using redelivery policies
  • Handling exceptions with onException
  • Reusing error handlers in all your routes
  • Performing fine-grained control of error handling

You’ve now reached the halfway mark of this book, and we’ve covered a lot of ground. But what you’re about to embark on in this chapter is one of the toughest topics in integration: how to deal with the unexpected.

Writing applications that integrate disparate systems is a challenge when it comes to handling unexpected events. In a single system that you fully control, you can handle these events and recover. But systems that ...

Get Camel in Action, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.