Console Example

This is a beginner's 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 interactive - it reads input from the console, and then transforms the input to upper case and prints it back to the console.

This is implemented with a Camel route defined in the Spring XML markup shown below:

You can also run this example from your editor. For example, from Eclipse you can import this project using: File → Import … → Existing Maven Project, and select pom.xml from the examples\camel-example-console directory.

Next, navigate to the org.apache.camel.example.console.CamelConsoleMain class, right-click, and select Run As → Java Application.