1 of 1 people found this helpful
Unfortunately, there is no specific way to detect when the app server is shut down or when a client is disconnected directly. We use a heartbeat system to detect when the connection has been broken, and unsubscribe events will be fired at the time the housekeeper reigns those dead connections in.
Thanks for the reply . If its automatically detected , then is there a graceful way of not showing the error Dialog Box Window .
when my server goes down . if the client is connected to it
Yes, you can. This needs to be better documented and the API will probably need to be cleaned up in the future. But you can change the LogAdapter which is responsible for showing that default error dialog:
ClientMessageBusImpl bus = (ClientMessageBusImpl) ErraiBus.get();
bus.setLogAdapter( new MyLogAdapterImpl() );
The LogAdapter interface is pretty self explainatory.
Great . That was helpful and it worked.