Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

This cookbook shows how to load and add routes from XML files into an existing CamelContext.

Info

When adding routes as shown on this page, the routes is isolated and cannot re-use any existing onException, intercept etc.

You can define Camel routes in XML files using the <routes> tag with the namespace "http://camel.apache.org/schema/spring".
Suppose we have the bar route as shown below in the barRoute.xml XML file.

...