我们正在开发一个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.
更多推荐
发布评论