Apache Camel exists because integration is hard and Camel’s creators wanted to make things easier for users. Camel’s online documentation serves as a reference for its many features and components. In contrast, this book aims to guide readers through these features, starting with the simple points and building up to advanced Camel usage by the end of the book. Throughout the book, Camel’s features are put into action in real-life scenarios.
The book is divided into three parts:
Part 1 starts off simple by introducing you to Camel’s core functionality and concepts, and it presents some basic examples.
Building on part 1’s foundation, part 2 covers the core features of Camel. You’ll need many of these features when using Camel.
In part 3 we cover the topics that are useful when you’ve gained a better understanding of Camel from the earlier chapters.
The appendixes at the end of the book contain useful reference material on the Simple expression language, expressions and predicates, the producer and consumer templates, and the Camel community. Appendix E is written by Martin Krasser and shows how to use Akka with Camel.
We wrote this book primarily for developers who have found the online Camel documentation lacking and needed a guidebook that explained things in a more detailed and organized way. Although we mainly targeted existing Camel users, Camel in Action is a great way to start learning about Camel. Experienced engineers and architects are also encouraged to read this book, as it explains advanced Camel concepts that you just can’t find elsewhere. Test and Q&A engineers will find Camel and this book useful as a means of driving tests that require communication with various transports and APIs. System administrators, too, may find the management, monitoring, and deployment topics of great value.
Camel’s features are focused on the enterprise business community and its needs, but it’s also a generic and very useful integration toolkit. Any Java developer who needs to send a message somewhere will probably find Camel and this book useful.
The code examples in this book are abbreviated in the interest of space. In particular, some of the namespace declarations in the XML configurations and package imports in Java classes have been omitted. We encourage you to use the source code when working with the examples. The line lengths of some of the examples exceed the page width, and in cases like these, the marker is used to indicate that a line has been wrapped for formatting.
All source code in listings or in text is in a fixed-width font like this to separate it from ordinary text. Code annotations accompany many of the listings, highlighting important concepts. In some cases, numbered bullets link to explanations that follow the listing.
The source code for the examples in this book is available online from the publisher’s website at http://www.manning.com/CamelinAction, as well as from this site: http://code.google.com/p/camelinaction.
The following software is required to run the examples:
Apache Camel can be downloaded from its official website: http://camel.apache.org/download.html.
All the examples can be run using Maven. Chapter 1 shows you how to get started with Maven and run the examples.
The purchase of Camel in Action includes free access to a private web forum run by Manning Publications, where you can make comments about the book, ask technical questions, and receive help from the authors and from other users. To access the forum and subscribe to it, point your web browser to http://www.manning.com/CamelinAction. This page provides information on how to get on the forum once you’re registered, what kind of help is available, and the rules of conduct on the forum.
Manning’s commitment to our readers is to provide a venue where a meaningful dialogue between individual readers and between readers and the authors can take place. It is not a commitment to any specific amount of participation on the part of the authors, whose contribution to the forum remains voluntary (and unpaid). We suggest you try asking the authors some challenging questions, lest their interest stray!
The Author Online forum and the archives of previous discussions will be accessible from the publisher’s website as long as the book is in print.