1RMIREGISTRY(1)                   JDK Commands                   RMIREGISTRY(1)
2
3
4

NAME

6       rmiregistry  -  create and start a remote object registry on the speci‐
7       fied port on the current host
8

SYNOPSIS

10       rmiregistry [options] [port]
11
12       options
13              This represents the option for the rmiregistry command.  See Op‐
14              tions
15
16       port   The  number  of a port on the current host at which to start the
17              remote object registry.
18

DESCRIPTION

20       The rmiregistry command creates and starts a remote object registry  on
21       the  specified  port on the current host.  If the port is omitted, then
22       the registry is started on port 1099.  The rmiregistry command produces
23       no output and is typically run in the background, for example:
24
25              rmiregistry &
26
27       A  remote  object registry is a bootstrap naming service that's used by
28       RMI servers on the same host to bind remote objects to names.   Clients
29       on  local and remote hosts can then look up remote objects and make re‐
30       mote method invocations.
31
32       The registry is typically used to locate the  first  remote  object  on
33       which  an application needs to call methods.  That object then provides
34       application-specific support for finding other objects.
35
36       The methods of the java.rmi.registry.LocateRegistry class are  used  to
37       get a registry operating on the local host or local host and port.
38
39       The  URL-based  methods  of the java.rmi.Naming class operate on a reg‐
40       istry and can be used to:
41
42       • Bind the specified name to a remote object
43
44       • Return an array of the names bound in the registry
45
46       • Return a reference, a stub, for the remote object associated with the
47         specified name
48
49       • Rebind the specified name to a new remote object
50
51       • Destroy  the  binding for the specified name that's associated with a
52         remote object
53

OPTIONS

55       -Joption
56              Used with any Java option to pass the option  following  the  -J
57              (no  spaces  between  the  -J and the option) to the Java inter‐
58              preter.
59
60
61
62JDK 17                               2021                       RMIREGISTRY(1)
Impressum