TIBCO EMS .NET API 8.5
TIBCO EMS .NET API 8.5
|
Asynchronously detect problems with connections. More...
Public Member Functions | |
void | OnException (EMSException exception) |
Asynchronously notifies the user of an EMSEXception. More... | |
Asynchronously detect problems with connections.
The client implements the IExceptionListener interface, and registers it with the Connection object. If the client detects a serious problem with the Connection object, it informs the IExceptionListener by calling the listener's OnException method, passing it a EMSException 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.
The client will first attempt to resolve connection problems before it notifies the client of them.
IExceptionListener mimics the way in which JMS detects this type of problem in a Java programming idiom. In contrast, EMSExceptionHandler provides similar functionality in a .NET idiom. Programmers may select either idiom - but not both (which would cause duplicate exception processing with undefined behavior).
void TIBCO.EMS.IExceptionListener.OnException | ( | EMSException | exception | ) |
Asynchronously notifies the user of an EMSEXception.
exception | The EMSException |