On the client use the following API. This returns a stub (remote reference) to the remote registry. If this call fails then it will throw java.rmi.RemoteException. And you will know that there is problem. What you **cannot** rely after trapping this exception
1. You cannot be sure whether the root cause is the network problem OR the registry outage
2. Regitry may be running fine. But exception might have been thrown due to some problem on the way back.
API:
java.rmi.registry.LocateRegistry.getRegistry(
String host, int portNum)
Cheers
[ June 23, 2006: Message edited by: Nishant Verma ]