rmiregistry.1 revision 5116:d45bc4307996
1." Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
2." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3."
4." This code is free software; you can redistribute it and/or modify it
5." under the terms of the GNU General Public License version 2 only, as
6." published by the Free Software Foundation.
7."
8." This code is distributed in the hope that it will be useful, but WITHOUT
9." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10." FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
11." version 2 for more details (a copy is included in the LICENSE file that
12." accompanied this code).
13."
14." You should have received a copy of the GNU General Public License version
15." 2 along with this work; if not, write to the Free Software Foundation,
16." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17."
18." Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
19." or visit www.oracle.com if you need additional information or have any
20." questions.
21."
22.TH rmiregistry 1 "10 May 2011"
23
24.LP
25.SH "Name"
26rmiregistry \- The Java Remote Object Registry
27.LP
28.RS 3
29The \f3rmiregistry\fP command starts a remote object registry on the specified port on the current host.
30.RE
31
32.LP
33.SH "SYNOPSIS"
34.LP
35.nf
36\f3
37.fl
38rmiregistry [\fP\f4port\fP\f3]
39.fl
40\fP
41.fi
42
43.LP
44.SH "DESCRIPTION"
45.LP
46.LP
47The \f3rmiregistry\fP command creates and starts a remote object registry on the specified \f2port\fP on the current host. If \f2port\fP is omitted, the registry is started on port 1099. The \f3rmiregistry\fP command produces no output and is typically run in the background. For example:
48.LP
49.LP
50\f2rmiregistry &\fP
51.LP
52.LP
53A remote object registry is a bootstrap naming service that is used by RMI servers on the same host to bind remote objects to names. Clients on local and remote hosts can then look up remote objects and make remote method invocations.
54.LP
55.LP
56The registry is typically used to locate the first remote object on which an application needs to invoke methods. That object in turn will provide application\-specific support for finding other objects.
57.LP
58.LP
59The methods of the \f2java.rmi.registry.LocateRegistry\fP class are used to get a registry operating on the local host or local host and port.
60.LP
61.LP
62The URL\-based methods of the \f2java.rmi.Naming\fP class operate on a registry and can be used to look up a remote object on any host, and on the local host: bind a simple (string) name to a remote object, rebind a new name to a remote object (overriding the old binding), unbind a remote object, and list the URLs bound in the registry.
63.LP
64.SH "OPTIONS"
65.LP
66.RS 3
67.TP 3
68\-J
69Used in conjunction with any \f2java\fP option, it passes the option following the \f2\-J\fP (no spaces between the \-J and the option) on to the \f2java\fP interpreter.
70.RE
71
72.LP
73.SH "SEE ALSO"
74.LP
75java(1),
76.na
77\f2java.rmi.registry.LocateRegistry\fP @
78.fi
79http://download.oracle.com/javase/7/docs/api/java/rmi/registry/LocateRegistry.html and
80.na
81\f2java.rmi.Naming\fP @
82.fi
83http://download.oracle.com/javase/7/docs/api/java/rmi/Naming.html
84