Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Mastering Apache Camel

You're reading from  Mastering Apache Camel

Product type Book
Published in Jun 2015
Publisher Packt
ISBN-13 9781782173151
Pages 238 pages
Edition 1st Edition
Languages
Concepts
Authors (3):
Bilgin Ismet Ibryam Bilgin Ismet Ibryam
Profile icon Bilgin Ismet Ibryam
Jean Baptiste Onofre Jean Baptiste Onofre
Profile icon Jean Baptiste Onofre
Jean-Baptiste Onofré Jean-Baptiste Onofré
Profile icon Jean-Baptiste Onofré
View More author details

Channels


In every Camel route, there is a channel that sits between each processor in the route graph. It's responsible for the routing of an Exchange to the next Processor in the graph. The channel acts as a controller that monitors and controls the routing at runtime. It allows Camel to enrich the route with interceptors. For instance, the Camel tracer or the error handling are functionalities implemented using an interceptor on the channel.

The channel is described by the org.apache.camel.Channel interface. You can configure your own interceptor on the channels by describing it in Camel context.

Camel supports three kinds of interceptors on the channels:

  • Global interceptors: This intercepts all exchanges on the channels

  • Interceptors on the incoming exchanges: This has limited the scope of the interceptor only on the first channel (the one just after the first endpoint)

  • Interceptors on the exchanges going to one specific endpoint: This limits the interceptor to the channel just before a given...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}