2692
|
1 |
." Copyright 2003-2006 Sun Microsystems, Inc. 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 |
."
|
|
18 |
." Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
|
19 |
." CA 95054 USA or visit www.sun.com if you need additional information or
|
|
20 |
." have any questions.
|
|
21 |
."
|
2692
|
22 |
.TH rmiregistry 1 "04 May 2009"
|
|
23 |
." Generated from HTML by html2man (author: Eric Armstrong)
|
2
|
24 |
|
|
25 |
.LP
|
2692
|
26 |
.SH "Name"
|
2
|
27 |
rmiregistry \- The Java Remote Object Registry
|
|
28 |
.LP
|
2692
|
29 |
.RS 3
|
2
|
30 |
|
|
31 |
.LP
|
|
32 |
.LP
|
|
33 |
The \f3rmiregistry\fP command starts a remote object registry on the specified port on the current host.
|
|
34 |
.LP
|
2692
|
35 |
.RE
|
2
|
36 |
.SH "SYNOPSIS"
|
|
37 |
.LP
|
|
38 |
|
|
39 |
.LP
|
|
40 |
.nf
|
|
41 |
\f3
|
|
42 |
.fl
|
|
43 |
rmiregistry [\fP\f4port\fP\f3]
|
|
44 |
.fl
|
|
45 |
\fP
|
|
46 |
.fi
|
|
47 |
|
|
48 |
.LP
|
|
49 |
.SH "DESCRIPTION"
|
|
50 |
.LP
|
|
51 |
|
|
52 |
.LP
|
|
53 |
.LP
|
|
54 |
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:
|
|
55 |
.LP
|
|
56 |
.LP
|
|
57 |
\f2rmiregistry &\fP
|
|
58 |
.LP
|
|
59 |
.LP
|
|
60 |
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.
|
|
61 |
.LP
|
|
62 |
.LP
|
|
63 |
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.
|
|
64 |
.LP
|
|
65 |
.LP
|
|
66 |
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.
|
|
67 |
.LP
|
|
68 |
.LP
|
|
69 |
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.
|
|
70 |
.LP
|
|
71 |
.SH "OPTIONS"
|
|
72 |
.LP
|
|
73 |
|
|
74 |
.LP
|
2692
|
75 |
.RS 3
|
2
|
76 |
.TP 3
|
|
77 |
\-J
|
|
78 |
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
|
79 |
.RE
|
|
80 |
|
2
|
81 |
.LP
|
|
82 |
.SH "SEE ALSO"
|
|
83 |
.LP
|
|
84 |
|
|
85 |
.LP
|
|
86 |
.LP
|
2692
|
87 |
java(1),
|
2
|
88 |
.na
|
|
89 |
\f2java.rmi.registry.LocateRegistry\fP @
|
|
90 |
.fi
|
2692
|
91 |
http://java.sun.com/javase/6/docs/api/java/rmi/registry/LocateRegistry.html and
|
2
|
92 |
.na
|
|
93 |
\f2java.rmi.Naming\fP @
|
|
94 |
.fi
|
2692
|
95 |
http://java.sun.com/javase/6/docs/api/java/rmi/Naming.html
|
2
|
96 |
.LP
|
|
97 |
|
|
98 |
.LP
|
|
99 |
|