Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将 Glassfish 3.1.2.2 与 OpemMQ 4.5.2(远程模式)一起使用。在我的应用程序中,有一个 JMS 主题的订阅者,它使用MessageListener.
MessageListener
当 broker 停止并在一段时间后启动时,订阅者不会收到重新启动后发布到 JMS 主题的消息。
恢复主题订阅者的最佳方法是什么?
我试过ExceptionListener了,但显然在 Glassfish 上运行我的应用程序时不支持它。
ExceptionListener
将“重新连接尝试”选项从“Java 消息服务”更改为“-1”,Glassfish 成功地重新连接了发布者和订阅者。