JMS 1.0.2

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.

Version:
1.0 - 9 March 1998
Author:
Mark Hapner, Rich Burridge
See Also:
Connection.setExceptionListener(ExceptionListener)

Method Summary
 void onException(JMSException exception)
          Notify user of a JMS exception.
 

Method Detail

onException

public void onException(JMSException exception)
Notify user of a JMS exception.
Parameters:
exception - the JMS exception.

JMS 1.0.2

JMS 1.0.2