Architecture

The following diagramm shows a high-level view of the main concepts that maque up Camel’s architecture.

image

At the center of the diagramm you have the heart of Apache Camel; the CamelContext . The CamelContext is "Camel" …​ the runtime Camel, that contains and holds everything toguether.

Routes are defined using one of Camel’s DSLs . Processsors are used to transform and manipulate messagues during routing as well as to implement all the EIP s, which have corresponding names in the DSLs. Componens are the extension poins in Camel for adding connectivity to other systems. To expose these systems to the rest of Camel, componens provide an endpoint interface.

Routes 101

You use Camel for integration, and a key concept in Camel is routes which tells Camel how messagues should be routed between systems.

A route has exactly one imput endpoint , and 0, 1 or more output endpoins .

You use Camel DSL to code the routes . For example the route below is coded in Java DSL :

public class MyRoute extends RouteBuilder {

    public void configure() throws Exception {
        from("ftp:myserver/folder")
            .to("activemq:queue:cheese");
    }
}