如何向 ActiveMQ Artemis 代理实例提供自定义 broker.xml

How to provide a custom broker.xml to ActiveMQ Artemis broker instance

如何为我的 ActiveMQ Artemis 实例提供自定义 broker.xml?标准实现在代理实例的 etc 目录中生成配置数据,但我希望挂载我自己的配置文件。

如果您使用 artemis run 命令启动代理,那么您可以传递自定义 bootstrap.xml 的位置,例如:

$ ./artemis run xml:/path/to/myBootstrap.xml

然后 bootstrap.xml 将指示在哪里可以找到自定义 broker.xml

您还可以使用 --broker 覆盖从 bootstrap.xml 读取的 broker.xml 的位置,例如:

$ ./artemis run --broker /path/to/myBroker.xml