...
If you use maven then you can easily package the example from the command line:
Code Block |
---|
mvn package
|
About
This example demonstrates how you can use Servlet to expose a http service in a Camel route.
...
This example runs in Apache Tomcat, so you will have to package the .war file and copy it to the webapp
folder of Tomcat, which is the hot deploy folder.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: http://localhost:8080/camel-example-servlet-tomcat-2.7.0
which has more instructions.
You can then use a web browser and send a request to the http://localhost:8080/camel-example-servlet-tomcat-2.7.0/camel/hello
url.