简体   繁体   English

JMS监听器关闭2小时,然后从主题启动如何恢复消息

[英]JMS is listener is down for 2 hour then How recover message once it is up from topic

suppose I have Durable Topic and three client as Receiver clientA, clientB, clientC and so on. 假设我有耐用主题和三个客户端,分别是接收方clientA,clientB,clientC等。 clientA is down for 2 hour, once clientA is up, how should we have guaranty that clientA will receive all messages from last two hour(which was missed in downtime). clientA关闭2小时,一旦clientA启动,我们应如何保证clientA将接收过去两个小时的所有消息(在停机时间中错过了)。

First of all, there is no "Durable Topic". 首先,没有“耐用主题”。 There is "Durable Subscription" which is what you meant I guess. 我猜这就是您所说的“耐用订阅”。 A durable subscription ensures that publications are held by the messaging provider till the consumer (client A in your case) comes back and resumes subscription. 持久订阅可确保发布由消息传递提供者持有,直到使用者(在您的情况下为客户端A)返回并恢复订阅为止。 Once the consumer resumes subscription, all those publications held by the messaging provider will be delivered. 消费者恢复订阅后,消息传递提供商持有的所有那些出版物将被交付。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM