public interface ExceptionListener
Connection
object, it informs the Connection
object's ExceptionListener
, if one has been registered. It does this by calling the listener's
onException
method, passing it a JMSException
argument 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 Jakarta Messaging provider should attempt to resolve connection problems itself before it notifies the client of them.
Connection.setExceptionListener(ExceptionListener)
Modifier and Type | Method and Description |
---|---|
void |
onException(JMSException exception)
Notifies user of a Jakarta Messaging exception.
|
void onException(JMSException exception)
exception
- the Jakarta Messaging exceptionComments to: jms-dev@eclipse.org.
Copyright © 2018, 2020 Eclipse Foundation. All rights reserved.
Use is subject to license terms.