Name

ExceptionListener

Synopsis

An ExceptionListener is used to get asynchronous notification of errors that occur with a Connection to a JMS provider. If a client registers an ExceptionListener with a Connection using the Connection.setExceptionListener() method, then on any error the provider will call the onException() method on the ExceptionListener, passing it the exception describing the error.

public interface ExceptionListener {
// Public Instance Methods
   public abstract void onException( JMSException exception);  
}

Passed To

javax.jms.Connection.setExceptionListener()

Returned By

javax.jms.Connection.getExceptionListener()

Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.