Loading routes from XML files
Available as of Camel 2.6
This cookbook shows how to load and add routes from XML files into an existing CamelContext.
You can define Camel routes in XML files using the
We can then load this route and add to the existing CamelContext using the following lines of code:
If you are using older versions of Camel, you can do this as well but it requires a bit more work. See this commit log.