开发者

Creating Camel routes at runtime in Grails

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜