Reputation: 24383
The Grails routing plugin makes creating Apache Camel routes at compile-time trivial. Is there a way to create new routes at runtime?
Upvotes: 1
Views: 1828
Reputation: 55555
Camel has API for creating and adding routes at runtime.
For example loading routes from XML http://camel.apache.org/loading-routes-from-xml-files.html
And you can also use the API from the model package or use a RouteBuilder instance and define your routes. Then just use the API on CamelContext to add routes.
Upvotes: 2