|CONTENTS | PREV | NEXT||Java Remote Method Invocation|
The RMI system uses the
java.rmi.registry.Registryinterface and the
java.rmi.registry.LocateRegistryclass to provide a well-known bootstrap service for retrieving and registering objects by simple names.
A registry is a remote object that maps names to remote objects. Any server process can support its own registry or a single registry can be used for a host.
The methods of
LocateRegistryare used to get a registry operating on a particular host or host and port. The methods of the
java.rmi.Namingclass makes calls to a remote object that implements the Registry interface using the appropriate LocateRegistry.getRegistry method.