简体   繁体   中英

JMS topic subscriber reconnection

I'm using Glassfish 3.1.2.2 with OpemMQ 4.5.2 (remote mode). In my application, there is a subscriber of a JMS topic, that receives messages asynchronously, using a MessageListener .

When broker is stopped and started after a while, messages published to the JMS topic after restart are not received by the subscriber.

What is the best way to recover the topic subscriber?

I've tried ExceptionListener , but apparently it's not supported when running my application on Glassfish.

将“重新连接尝试”选项从“ Java消息服务”更改为“ -1”,Glassfish成功重新连接了发布者和订阅者。

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