public static boolean isRMIRegistryRunning(Configuration configuration, int port) {
        try {
            final Registry registry = RegistryFinder.getInstance().getRegistry(configuration, port);
            registry.list();
            return true;
        } catch (RemoteException ex) {
            return false;
        } catch (Exception e) {
            return false;
        }
    }
public static boolean isRMIRegistryRunning ( Configuration configuration , int port ) { try { final Registry registry = RegistryFinder . getInstance ( ) . getRegistry ( configuration , port ) ; registry . list ( ) ; return true ; } catch ( RemoteException ex ) { return false ; } catch ( Exception e ) { return false ; } }
Checks if rmiregistry is running on the specified port.

@param port
@return true if rmiregistry is running on the specified port, false
otherwise