Cafe Example

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.

Running

You will need to compile this example first:

The example should run if you type:

To stop the server hit ctrl + c

Sample output

When the client is running it outputs all requests and responses on the screen.

See Also

© 2004-2014 The Apache Software Foundation.
Apache Camel, Camel, Apache, the Apache feather logo, and the Apache Camel project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
Graphic Design By Hiram