Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In the web.xml file in the src/main/webapp/WEB-INF folder the CamelServlet is defined. This is mandatory to do when using the Servlet component.

Wiki Markup
{snippet:id=e1|lang=xml|title=web.xml|url=camel/

...

examples/camel-example-servlet-tomcat/src/main/webapp/WEB-INF/web.xml}
The route is a simple Content Based Router defined in the DSL XML as shown:
Wiki Markup
{snippet:id=e1|lang=xml|title=camel-config.xml|url=camel

...

/examples/camel-example-servlet-tomcat/src/main/resources/camel-config.xml}

Running the example

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.

...