javax.jms
Interface ExceptionListener
- public interface ExceptionListener
If a JMS provider detects a serious problem with a Connection it will
inform the Connection's ExceptionListener if one has been registered.
It does this by calling the listener's onException() method passing it a
JMSException describing the problem.
This allows a client to be asynchronously notified of a problem.
Some Connections only consume messages so they would have no other way
to learn their Connection has failed.
A JMS provider should attempt to resolve connection problems
themselves prior to notifying the client of them.
- See Also:
Connection.setExceptionListener(ExceptionListener)
onException
public void onException(JMSException exception)
- Notify user of a JMS exception.
- Parameters:
exception
- the JMS exception.