简体   繁体   中英

check whether an activemq subscriber is subscribed to a topic or not?

I am working on a code in which there are 3 subscribers(non-durable) to a topic in activemq, but something wrong happens and one subscriber gets disconnected from the topic and never connects back again even though the protocol used is failover. So, how can i check the status of a subscriber and if its not subscribed then connect it back.

我认为您应该尝试将ExceptionListener附加到您的JMS连接上-一旦订阅者出于某种原因断开连接,它应该向您显示。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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