Since we're on a major migration process of this website, some component documents here are out of sync right now. In the meantime you may want to look at the asciidoc in the repository: https://github.com/apache/camel/blob/master/README.md https://github.com/apache/camel/blob/master/components/readme.adoc
Servlet Tomcat No Spring ExampleAvailable as of Camel 2.11 This example is located in the If you use maven then you can easily package the example from the command line: mvn package AboutThis example demonstrates how you can create light-weight web applications without the need for Spring Framework. ImplementationIn the Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20 Its the ServletListener Component that is used to bootstrap Camel in the web application. See more details at ServletListener Component. The Camel routeThe route is a simple Content Based Router defined in the DSL XML as shown: Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20 Running the exampleThis example runs in any web container such as Apache Tomcat. For example to deploy in Apache Tomcat you will have to package the .war file and copy it to the There is a main page at: See Also |