public interface ExceptionListener
Connectionobject, it informs the
ExceptionListener, if one has been registered. It does this by calling the listener's
onExceptionmethod, passing it a
JMSExceptionargument describing the problem.
An exception listener allows a client to be notified of a problem asynchronously. Some connections only consume messages, so they would have no other way to learn that their connection has failed.
A JMS provider should attempt to resolve connection problems itself before it notifies the client of them.
void onException(JMSException exception)
exception- the JMS exception
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.