Since we're on a major migration process of this website, some component documents here are out of sync right now. In the meantime you may want to look at the asciidoc in the repository: https://github.com/apache/camel/blob/master/README.md https://github.com/apache/camel/blob/master/components/readme.adoc
This example shows how to use Camel to implement a Cafe use case.
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.
Here is the route builder code for it.
You will need to compile this example first:
The example should run if you type:
To stop the server hit ctrl + c
When the client is running it outputs all requests and responses on the screen.