public void exportAndBind ( ) throws RemoteException , AlreadyBoundException , InterruptedException { Registry registry = LocateRegistry . createRegistry ( arguments . getRegistryPortNumber ( ) ) ; registry . rebind ( RMI_BINDING_NAME , this ) ; Thread . sleep ( 2000 ) ; logger . info ( "RmiJournalReceiver is ready - journal directory is '" + arguments . getDirectoryPath ( ) . getAbsolutePath ( ) + "'" ) ; }
Create an RMI registry and bind this object to the expected name .