Chapter 3. Routing and Processors

In the previous chapter, we saw the core concepts of implementing the messaging and routing system provided by Camel.

In this chapter we will cover routing—one of the most important features of Camel. Without the routing, Camel would be a simple connectivity framework. Routing is a key function of Camel, it means we can apply all the transformations to a message. It can modify the content of the message itself or the destination of the message, all on the fly.

This chapter introduces:

  • How to use a processor to change an exchange
  • A complete example of a route containing a processor

What is a processor?

A consumer endpoint receives an event from the environment and wraps it as an Exchange.

The routing engine transports ...

Get Mastering Apache Camel 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.