9573
|
1 |
." Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
|
2
|
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 |
."
|
5506
|
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.
|
2692
|
21 |
."
|
9573
|
22 |
.TH rmiregistry 1 "10 May 2011"
|
2
|
23 |
|
|
24 |
.LP
|
2692
|
25 |
.SH "Name"
|
2
|
26 |
rmiregistry \- The Java Remote Object Registry
|
|
27 |
.LP
|
2692
|
28 |
.RS 3
|
9573
|
29 |
The \f3rmiregistry\fP command starts a remote object registry on the specified port on the current host.
|
|
30 |
.RE
|
2
|
31 |
|
|
32 |
.LP
|
|
33 |
.SH "SYNOPSIS"
|
|
34 |
.LP
|
|
35 |
.nf
|
|
36 |
\f3
|
|
37 |
.fl
|
|
38 |
rmiregistry [\fP\f4port\fP\f3]
|
|
39 |
.fl
|
|
40 |
\fP
|
|
41 |
.fi
|
|
42 |
|
|
43 |
.LP
|
|
44 |
.SH "DESCRIPTION"
|
|
45 |
.LP
|
|
46 |
.LP
|
|
47 |
The \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
|
|
53 |
A 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
|
|
56 |
The 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
|
|
59 |
The 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
|
|
62 |
The 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
|
2692
|
66 |
.RS 3
|
2
|
67 |
.TP 3
|
|
68 |
\-J
|
|
69 |
Used 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.
|
2692
|
70 |
.RE
|
|
71 |
|
2
|
72 |
.LP
|
|
73 |
.SH "SEE ALSO"
|
|
74 |
.LP
|
2692
|
75 |
java(1),
|
2
|
76 |
.na
|
|
77 |
\f2java.rmi.registry.LocateRegistry\fP @
|
|
78 |
.fi
|
9573
|
79 |
http://download.oracle.com/javase/7/docs/api/java/rmi/registry/LocateRegistry.html and
|
2
|
80 |
.na
|
|
81 |
\f2java.rmi.Naming\fP @
|
|
82 |
.fi
|
9573
|
83 |
http://download.oracle.com/javase/7/docs/api/java/rmi/Naming.html
|