The 开发者_开发技巧Grails routing plugin makes creating Apache Camel routes at compile-time trivial. Is there a way to create new routes at runtime?
Look here for a complete walk-through: Grails, Camel and adding routes at runtime
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.
This plugin was only released a couple of days ago - your best bet is to ask the plugin developers.
精彩评论