ActiveMQ 咨询主题的连接未在代理网络中转发?
我正在开发一个应用程序,我们希望在其中监视客户端的登录/注销。由于 ActiveMQ 包含警告您新连接和删除连接的咨询主题,因此我们的想法是使用此咨询消息 (ActiveMQ.Advisory.Connection)。这在开发过程中工作得很好,但现在,当我们要在代理网络中进行生产时,我们注意到来自网络中远程代理的消息没有到达我们的消费者。
我们的设置是:
制作人 | 站点 1 中的代理 A 和 B(主从)->它们有一个双工网络连接器连接到站点 2 中的公共代理(C 和 D)
代理 C 和 D(又是主从)
并连接到 C 和 D,我们有我们想知道其登录/注销的“消费者”信息。
当我们在代理 A 的管理控制台中查看咨询主题时,我们会看到订阅者,并且如果我们让消费者连接,我们会收到登录消息。在 Broker C 上,我没有看到咨询主题的任何订阅者,并且当消费者登录/关闭时,我们看不到咨询消息。
这是默认行为还是我缺少配置?
I'm working on an application where we want to monitor logon/logoff of clients. Since ActiveMQ contains Advisory Topics that alert you of new connections and removal of connections, the idea was to use this advisory messages ( ActiveMQ.Advisory.Connection). This worked fine during development but now, when we are going to production in our network of brokers, we noticed that the messages from remote brokers in the network are not getting to our consumer.
Our setup is:
Producer
|
Broker A and B ( master Slave) in site 1 -> These have a duplex network connector to our public brokers (C & D)
Broker C and D (master slave again) in site 2
and attached to C and D, we have the "consumers" of whom we want to know logon/logoff information.
When we take a look at the advisory topic in the admin console on Broker A, we see the subscriber and we get logon messages if we let a consumer connect. On Broker C, I don't see any subscribers on the advisory topic, and when a consumers logs on / OFF, we don't see the advisory message.
Is this behaviour by default or am i missing a config?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要查找不同的地方:
。通常情况下,这似乎已经被检查过。broker.setAdvisorySupport(false);
。是根本原因,因为它在开发环境中工作There are different places you need to look for:
<broker advisorySupport="false">
. Normally this seems to be checked alreadybroker.setAdvisorySupport(false);
. This should not seem to be the root cause since it works in development environment