A Camel route is the minimum self contained unit of messaging logic. It has a beginning, one or many processing steps, an end, its own lifecycle, error handlers, and so on. Any integration application of a reasonable size consists of multiple routes working simultaneously to achieve a common goal. In many terms, routes are similar to objects in the object oriented world. Routes have responsibilities and also interact with their peers, hosted on the same
CamelContext or even a separate
CamelContext in the same JVM. In this tutorial, we are going to see how to connect routes with one another and other Java codes.
The complete source code for this tutorial is located under the project,