ActiveMQ Artemis 运行 代理的多个 Web 控制台
ActiveMQ Artemis running multiple web consoles for broker
我想了解 ActiveMQ Artemis,所以我安装了 2.13.0 版。在阅读文档和其他在线资源后,我成功地同时创建了 运行 两个代理。
我在经纪人 1 的控制台上得到关注
Artemis Console available at http://localhost:8161/console
对于经纪人 2
Artemis Console available at http://localhost:8162/console
现在,当我在其中一个 Web 控制台上登录时,另一个会自动注销。我试图在 Web 控制台上搜索经纪人名称,但找不到。
任何人都可以告诉我我犯了什么错误或任何资源可以让我自己理解吗?我有 ActiveMQ Artemis 的文档 link。
ActiveMQ Artemis Web 控制台将 JSESSIONID
存储在具有域范围的 cookie 中。要使用其 Web 控制台同时登录多个 ActiveMQ Artemis 实例,您需要多个隔离浏览器实例或每个 ActiveMQ Artemis 实例的不同域。
要模拟 2 个不同的域,您可以允许新的交叉源并使用 xip.io 服务:
在经纪人 1 的 jolokia-access.xml 中添加以下交叉源:
<allow-origin>*://node1.127.0.0.1.xip.io*</allow-origin>
在代理 2 的 jolokia-access.xml 中添加以下交叉源:
<allow-origin>*://node2.127.0.0.1.xip.io*</allow-origin>
使用以下地址访问代理 1:
http://node1.127.0.0.1.xip.io:8161/
使用以下地址访问代理 2:
http://node2.127.0.0.1.xip.io:8162/
我想了解 ActiveMQ Artemis,所以我安装了 2.13.0 版。在阅读文档和其他在线资源后,我成功地同时创建了 运行 两个代理。
我在经纪人 1 的控制台上得到关注
Artemis Console available at http://localhost:8161/console
对于经纪人 2
Artemis Console available at http://localhost:8162/console
现在,当我在其中一个 Web 控制台上登录时,另一个会自动注销。我试图在 Web 控制台上搜索经纪人名称,但找不到。
任何人都可以告诉我我犯了什么错误或任何资源可以让我自己理解吗?我有 ActiveMQ Artemis 的文档 link。
ActiveMQ Artemis Web 控制台将 JSESSIONID
存储在具有域范围的 cookie 中。要使用其 Web 控制台同时登录多个 ActiveMQ Artemis 实例,您需要多个隔离浏览器实例或每个 ActiveMQ Artemis 实例的不同域。
要模拟 2 个不同的域,您可以允许新的交叉源并使用 xip.io 服务:
在经纪人 1 的 jolokia-access.xml 中添加以下交叉源:
<allow-origin>*://node1.127.0.0.1.xip.io*</allow-origin>
在代理 2 的 jolokia-access.xml 中添加以下交叉源:
<allow-origin>*://node2.127.0.0.1.xip.io*</allow-origin>
使用以下地址访问代理 1:
http://node1.127.0.0.1.xip.io:8161/
使用以下地址访问代理 2:
http://node2.127.0.0.1.xip.io:8162/