在 Grails 中运行时创建 Camel 路由

发布于 2024-10-08 12:07:59 字数 131 浏览 0 评论 0原文

Grails 路由插件 使得在编译时创建 Apache Camel 路由变得非常简单。有没有办法在运行时创建新路线?

The Grails routing plugin makes creating Apache Camel routes at compile-time trivial. Is there a way to create new routes at runtime?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

秋日私语 2024-10-15 12:07:59

在这里查看完整的演练:Grails, Camel 并在运行时添加路由

Look here for a complete walk-through: Grails, Camel and adding routes at runtime

合约呢 2024-10-15 12:07:59

Camel 有用于在运行时创建和添加路由的 API。

例如从 XML 加载路线
http://camel.apache.org/loading-routes-from-xml -files.html

您还可以使用模型包中的 API 或使用 RouteBuilder 实例并定义您的路线。然后只需使用CamelContext上的API来添加路由即可。

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.

时光是把杀猪刀 2024-10-15 12:07:59

这个插件几天前才发布 - 你最好的办法是询问插件开发人员。

This plugin was only released a couple of days ago - your best bet is to ask the plugin developers.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文