Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Cafe Example with Endpoint DSL


This example uses the Camel Endpoint DSL to configure Camel endpoints using a type-safe Java endpoint DSL (eg fluent builder style).

This example shows how to work with splitter and aggregator to implement a Cafe demo.

First it uses the splitter to dispatch the order, then sends the orders to barista by checking if the coffee is hot or cold. When the coffee is ready, we use a aggregate to gather the drinks for waiter to deliver.


You will need to compile this example first:

mvn compile


To run the example type

mvn camel:run

You can see the routing rules by looking at the java code in the src/main/java directory.

To stop the example hit ctrl+c

Help and contributions

If you hit any problem using Camel or have some feedback, then please let us know.

We also love contributors, so get involved :-)

The Camel riders!

You can’t perform that action at this time.