提问者:小点点

如何热导出ActiveMQ Artemis的配置并热导入?


我想对配置进行热导出,以便以后能够在不停止机器的情况下导入:

  • 地址
  • 队列
  • 路由类型
  • 地址-设置
  • 等等…

队列的创建是通过Apache ActiveMQ接口Management Console完成的。

我知道我们可以执行导出,但是必须停止Apache Artemis:

#Export the log in XML format
./artemis data exp > /tmp/export.xml

#Import of the log in XML format
./artemis data imp --input /tmp/export.xml --host localhost --port 61617

我知道我们也可以通过日志进行导出,但是Apache Artemis必须停止:

artemis data print --journal D:\apache-artemis-2.6.2\instances\broker-sandbox-miscellaneous\datajournal\ > D:/2022-02-05_ResultPrintJournal.txt

有没有办法恢复配置,并在运行后导入?

提前谢谢你的帮助


共1个答案

匿名用户

目前没有办法在运行时转储您提到的项目的配置,然后将它们应用到另一个正在运行的代理。

您可以更改broc. xml而不是通过Web控制台修改代理。这样,所有配置更改都将以简单的格式捕获,您可以简单地将其复制到另一个代理。