Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Mastering Apache Camel
  • Table Of Contents Toc
Mastering Apache Camel

Mastering Apache Camel

By : Jean-Baptiste Onofré
3.2 (6)
close
close
Mastering Apache Camel

Mastering Apache Camel

3.2 (6)
By: Jean-Baptiste Onofré

Overview of this book

This book is intended for all Camel users who want to get the best out of Camel, and who want to implement the most efficient integration logic using best practices.
Table of Contents (10 chapters)
close
close
9
Index

Error handlers scopes


An error handler can be defined:

  • At the Camel Context level (Camel Context scope), which means that all routes in this Camel Context will use this error handler.

  • At the route level (route scope), possibly overwritten the error handler defined using the Camel Context scope.

Thanks to the scope, it's possible to define a default error handler (Camel Context scope), and, possibly define an error handler specific to one particular route.

For instance, the following Blueprint XML contains two routes with two different error handlers—one with the Camel Context scope and another with route scope.

<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">

  <bean id="checker" class="com.packt.camel.chapter7e.Checker"/>

  <camelContext xmlns="http://camel.apache.org/schema/blueprint" errorHandlerRef="deadLetterErrorHandler">
      <errorHandler id="noErrorHandler" type="NoErrorHandler"/>
      <route&gt...
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Mastering Apache Camel
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon