activemq NoB:代理在重新连接后未收到消息

发布于 2024-11-25 04:26:53 字数 370 浏览 3 评论 0原文

我们有一个中心辐射型网络拓扑,其中包含带有主题和持久订阅者的 activemq。

(嵌入式)代理断开连接后,它不会获取在断开连接期间发送的消息,但会发送其本地待处理消息。

例子: 经纪商 A(嵌入式)<--->中央经纪商(独立)<---> Broker B(嵌入式)

Broker A 断开连接超过 30 秒(openwire 的最大不活动超时)后,它不会从中央 Broker 获取断开连接时发送的消息。但是,代理 A 发送了所有待处理消息,因此代理 B 接收了所有这些消息。

中央代理没有定义特定的网络连接器,因为事先不知道哪个代理必须连接到。

尝试了多种恢复策略,但似乎都不起作用。

有什么帮助吗?

We have a hub-and-spoke network topology with activemq with topic and durable subscribers.

After a (embedded) broker has been disconnected, it does not get the messages that have been sent during the disconnection period while it does send its local pending messages.

Example:
broker A (embedded) <---> central broker (standalone) <---> broker B (embedded)

After broker A has been disconnect for more than 30s (max innactivity timeout for openwire), it does not get from the central broker the messages that have been sent while disconnect. However, broker A sends all its pending messages so broker B receives all of them.

Central broker does not have a specific network connector defined, since it is not known before hand which brokers has to connect to.

Tried with several recovery policies, but none seems to work.

Any help?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

未央 2024-12-02 04:26:53

持久主题和集群代理存在各种问题...

如果可能,请尝试使用 虚拟主题 相反。它们设置简单,行为类似于持久队列,并且似乎更可靠......

there are various issues with durable topics and clustered brokers...

if possible, try using virtual topics instead. they are simple to setup, behave like persistent queues and seem to be much more reliable...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文