Spec-Zone .ru
спецификации, руководства, описания, API
|
CONTENTS | PREV | NEXT | Java Remote Method Invocation |
CHAPTER 6 |
The RMI system uses thejava.rmi.registry.Registry
interface and thejava.rmi.registry.LocateRegistry
class 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
LocateRegistry
are used to get a registry operating on a particular host or host and port. The methods of thejava.rmi.Naming
class makes calls to a remote object that implements theRegistry
interface using the appropriateLocateRegistry.getRegistry
method.