1rmiregistry(1) Remote Method Invocation (RMI) Tools rmiregistry(1)
2
3
4
6 rmiregistry - Starts a remote object registry on the specified port on
7 the current host.
8
10 rmiregistry [ port ]
11
12
13 port The number of a port on the current host at which to start the
14 remote object registry.
15
17 The rmiregistry command creates and starts a remote object registry on
18 the specified port on the current host. If the port is omitted, then
19 the registry is started on port 1099. The rmiregistry command produces
20 no output and is typically run in the background, for example:
21
22 rmiregistry &
23
24 A remote object registry is a bootstrap naming service that is used by
25 RMI servers on the same host to bind remote objects to names. Clients
26 on local and remote hosts can then look up remote objects and make
27 remote method invocations.
28
29 The registry is typically used to locate the first remote object on
30 which an application needs to call methods. That object then provides
31 application-specific support for finding other objects.
32
33 The methods of the java.rmi.registry.LocateRegistry class are used to
34 get a registry operating on the local host or local host and port.
35
36 The URL-based methods of the java.rmi.Naming class operate on a
37 registry and can be used to look up a remote object on any host and on
38 the local host. Bind a simple name (string) to a remote object, rebind
39 a new name to a remote object (overriding the old binding), unbind a
40 remote object, and list the URL bound in the registry.
41
43 -J
44 Used with any Java option to pass the option following the -J
45 (no spaces between the -J and the option) to the Java
46 interpreter.
47
49 · java(1)
50
51 · java.rmi.registry.LocateRegistry class description at
52 http://docs.oracle.com/javase/8/docs/api/java/rmi/registry/LocateRegistry.html
53
54 · java.rmi.Naming class description at
55 http://docs.oracle.com/javase/8/docs/api/java/rmi/Naming.html
56
57
58
59JDK 8 21 November 2013 rmiregistry(1)