Package javax.jms
Interface ExceptionListener
-
public interface ExceptionListenerIf a JMS provider detects a serious problem with aConnectionobject, it informs theConnectionobject'sExceptionListener, if one has been registered. It does this by calling the listener'sonExceptionmethod, passing it aJMSExceptionargument 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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonException(JMSException exception)Notifies user of a JMS exception.
-
-
-
Method Detail
-
onException
void onException(JMSException exception)
Notifies user of a JMS exception.- Parameters:
exception- the JMS exception
-
-