When there is a network problem which results in the client being disconnected from the JMS server, is there some other way to detect the problem other than waiting until the next JMS message being sent fails?
When there is a network problem which results in the client being disconnected from
Share
You can register an
ExceptionListnerwith the JMSConnectionusingConnection.setExceptionListener(ExceptionListener)The
ExceptionListenerwill get notified of more problems than an actual disconnection, so you may have to filter theJMSExceptionthat gets passed to the listener.