有没有办法以编程方式配置铲子?(Is there a way to configure shovel programatically?)

系统教程 行业动态 更新时间:2024-06-14 16:59:47
有没有办法以编程方式配置铲子?(Is there a way to configure shovel programatically?)

我们正在开发一个Spring-AMQP - RabbitMQ应用程序。 我们希望使用铲子将消息从本地队列复制到远程队列,但我们希望从spring应用程序中完成消息传递服务的几乎所有配置。

此时我们可以从应用程序本身创建队列,交换等,但我们找不到从同一个应用程序配置铲子的方法。 有没有办法实现这个?

如果我们使用联合插件而不是铲子,有没有更好的方法来配置它而不是使用Spring-AMQP?

we are developing a Spring-AMQP - RabbitMQ app. We want to use shovel to replicate the messages from a local queue to a remote queue but we want to make almost all the configuration of the messaging service from the spring app.

At this point we are able to create the queues, exchanges etc, etc. from the app itself but we can't find a way to configure shovel from the same app. Is there a way to achive this?

If we use federation plugin instead of shovel, is there a better way of configuring it rather than shovel using Spring-AMQP?

最满意答案

看起来似乎无法以编程方式配置铲。 我最后做的是直接修改我的应用程序中的铲配置文件,稍后重启rabbitmq。 是一个丑陋的解决方案,但有效。

It looks like there's no way to configure shovel programmatically. What I did in the end was modifing directly the shovel configuration file from my application an later restart rabbitmq. Is an ugly solution but works.

更多推荐

本文发布于:2023-04-17 09:16:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/7d14d2f01e4947f527766bef62e4345c.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:铲子   没有办法   方式   programatically   configure

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!