重新启动 ActiveMQ Artemis 时转移被删除

Diverts deleted when restarting ActiveMQ Artemis

我已经搜索过,但在网上和手册中都没有找到任何相关信息。

我已经设置了地址,并且对多个队列使用多播,对单个队列(所有持久队列)使用 AnyCast。为此,我在运行时连接了在 API 中创建的转移。

转移功能在发送消息时效果很好。但是当我重新启动 ActiveMQ Artemis 实例时,转移被删除。其他一切都已到位。只是转移被删除了。

关于如何在重启后保留转移有什么想法吗?

在运行时通过管理 API 创建的转向是不稳定的。如果您希望转移在代理重启后仍然存在,您应该使用所需的转移配置修改 broker.xml。

当然,当前行为可能不适用于您的用例。如果这是真的,那么我会鼓励您在 Artemis JIRA project. Furthermore, if you're really committed to seeing the behavior change you can download the code, make the necessary changes, and submit a pull-request (or attach a patch to the JIRA). Checkout the Artemis Hacking Guide 打开一个 "Feature Request" JIRA 以获得入门帮助。