Product: OpenFusion Notification Service
Version: ALL
Description:
How to detect if a consumer has been disconnected due to a LAN disconnection?
If the push consumer is disconnected from the event service because of a LAN disconnection, how can it detect it has been disconnected?
Resolution:
The only ways that the disconnection could be detected are as follows:
1. Use the disconnect callback so that the disconnect method on the proxy will notify the consumer that it is being disconnected. This may work in the case of a transient network exception where the push call failed.
2. Try to connect to the same proxy and catch the AlreadyConnected exception. If the AlreadyConnected exception is thrown the Notification Service is available, if another exception is thrown it could indicate problems.
3. In order to determine if the service itself is still contactable, if the consumer has a reference to an object such as the event channel or event channel factory, it could call a method on that object and check for an exception being thrown.
#KnowledgeDocs
#OpenFusion




