Servlet Tomcat Example
Available as of Camel 2.7
This example is located in the
If you use maven then you can easily package the example from the command line:
This example demonstrates how you can use Servlet to expose a http service in a Camel route.
The route is a simple Content Based Router defined in the DSL XML as shown:
Running the example
This example runs in Apache Tomcat, so you will have to package the .war file and copy it to the
Note: You have to use the version number of Camel you use. In this documentation we are using 2.7.0.
There is a main page at: