Available as of Camel 2.10
This example is located in the Camel distribution at
This is a beginner example that demonstrates how to get started with Apache Camel.
In this example we integrate with the console using the Stream component. The example is an interactive example that reads input from the console, and then transforms the input to upper case and print it back on the console.
This is implemented in a Camel route, in a Spring XML file as shown below.
This example can be run from the command line using Maven with the following command:
In the console you can enter a message and press ENTER. And then Camel responds with the message in upper case, as shown below:
To stop the example hit ctrl + c
You can also run this example from your editor. For example from Eclipse you can import this project using: File -> Import ... -> Existing Maven Project -> select the pom.xml from the examples\camel-example-console directory.
And then open the org.apache.camel.example.console.CamelConsoleMain class, and right click: Run As -> Java Application.