Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Apache Camel

You're reading from   Mastering Apache Camel An advanced guide to Enterprise Integration using Apache Camel

Arrow left icon
Product type Paperback
Published in Jun 2015
Publisher Packt
ISBN-13 9781782173151
Length 238 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Toc

Table of Contents (10) Chapters Close

Processor


A processor is a node in the routing which is able to use, create, or modify an incoming exchange. During routing, the exchanges flow from one processor to another. This means all Enterprise Integration Patterns (EIP) are implemented using processors in Camel. The exchanges get in and out of a processor by using components and endpoints, as we will see later in this chapter.

A processor is described using the org.apache.camel.Processor interface. To create your own processor, you just have to implement the Processor interface and override the process() method:

Tip

Downloading the example code

You can download the example code files from your account at http://www.packtpub.com for all the Packt Publishing books you have purchased. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

public class MyProcessor implements Processor {

  public void process(Exchange exchange) {
System.out.println("Hello...
You have been reading a chapter from
Mastering Apache Camel
Published in: Jun 2015
Publisher: Packt
ISBN-13: 9781782173151
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 $19.99/month. Cancel anytime
Banner background image