Book Image

Mastering Apache Camel

By : Bilgin Ismet Ibryam, Jean Baptiste Onofre, Jean-Baptiste Onofré
5 (1)
Book Image

Mastering Apache Camel

5 (1)
By: Bilgin Ismet Ibryam, Jean Baptiste Onofre, Jean-Baptiste Onofré

Overview of this book

Table of Contents (15 chapters)
Mastering Apache Camel
About the Author
About the Reviewers


Apache Camel has slowly emerged as the main framework for integration. It provides a very flexible and efficient way to integrate applications and systems all together.

Camel provides a complete set of features, based on simple but powerful concepts, allowing you to easily implement very rich integration logic.

Using this book, you will have a detailed understanding, with how to steps to implement integration logics.

What this book covers

Chapter 1, Key Features, introduces what Camel is and the provided key features.

Chapter 2, Core Concepts, introduces the basis of all the functionalities provided by Camel.

Chapter 3, Routing and Processors, introduces Camel routing and the usage of processors.

Chapter 4, Beans, explains how to use beans in Camel routes and the different registries in which the beans live.

Chapter 5, Enterprise Integration Patterns, introduces one of the most interesting features of Camel—the ready-to-use patterns, which serve as an answer to classic integration problems.

Chapter 6, Components and Endpoints, introduces Camel components and endpoints, both how to use them and implement your own.

Chapter 7, Error Handling, introduces how to deal with errors in Camel routes.

Chapter 8, Testing, introduces how to implement both unit tests and integration tests on your Camel routes.

What you need for this book

For this book, the software required will be as follows:

  • Operating systems (any system supporting Java):

    • Windows 7 or superior

    • Unix (Linux)

  • Java DK 1.7

  • Apache Karaf 3.0.3

Who this book is for

This book is for developers who want to implement integration logic using Apache Camel. They will get details about Camel, from basic usage, up to the custom development of their own components.

Thanks to the first few chapters, even beginners unfamiliar with Camel will receive a comprehensive look into Camel before jumping into the details.


In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: " A message is described in the org.apache.camel.Message interface."

A block of code is set as follows:

public class MyProcessor implements Processor {

  public void process(Exchange exchange) {
System.out.println("Hello " + exchange.getIn().getBody(String.class));


Any command-line input or output is written as follows:

$ mvn clean install


Warnings or important notes appear in a box like this.


Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of.

To send us general feedback, simply e-mail , and mention the book's title in the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

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


Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title.

To view the previously submitted errata, go to and enter the name of the book in the search field. The required information will appear under the Errata section.


Piracy of copyrighted material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors and our ability to bring you valuable content.


If you have a problem with any aspect of this book, you can contact us at , and we will do our best to address the problem.