1rmiregistry(1) General Commands Manual rmiregistry(1)
2
3
4
6 rmiregistry - The Java Remote Object Registry
7
8 The rmiregistry command starts a remote object registry on the spec‐
9 ified port on the current host.
10
11
13 rmiregistry [port]
14
15
17 The rmiregistry command creates and starts a remote object registry on
18 the specified port on the current host. If port is omitted, the reg‐
19 istry is started on port 1099. The rmiregistry command produces no out‐
20 put 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 invoke methods. That object in turn will
31 provide 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 reg‐
37 istry and can be used to look up a remote object on any host, and on
38 the local host: bind a simple (string) name 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 URLs bound in the registry.
41
43 -J Used in conjunction with any java option, it passes the option
44 following the -J (no spaces between the -J and the option) on to
45 the java interpreter.
46
47
49 java(1), java.rmi.registry.LocateRegistry @
50 http://docs.oracle.com/javase/7/docs/api/java/rmi/registry/LocateReg‐
51 istry.html and java.rmi.Naming @
52 http://docs.oracle.com/javase/7/docs/api/java/rmi/Naming.html
53
54
55
56 16 Mar 2012 rmiregistry(1)