|
1 .'" t |
|
2 ." Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. |
|
3 ." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
|
4 ." |
|
5 ." This code is free software; you can redistribute it and/or modify it |
|
6 ." under the terms of the GNU General Public License version 2 only, as |
|
7 ." published by the Free Software Foundation. |
|
8 ." |
|
9 ." This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 ." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 ." FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 ." version 2 for more details (a copy is included in the LICENSE file that |
|
13 ." accompanied this code). |
|
14 ." |
|
15 ." You should have received a copy of the GNU General Public License version |
|
16 ." 2 along with this work; if not, write to the Free Software Foundation, |
|
17 ." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 ." |
|
19 ." Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
|
20 ." CA 95054 USA or visit www.sun.com if you need additional information or |
|
21 ." have any questions. |
|
22 ." ` |
|
23 .TH rmiregistry 1 "05 Aug 2006" |
|
24 ." Generated by html2roff |
|
25 |
|
26 .LP |
|
27 .SH NAME |
|
28 rmiregistry \- The Java Remote Object Registry |
|
29 .LP |
|
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 |
|
35 .SH "SYNOPSIS" |
|
36 .LP |
|
37 |
|
38 .LP |
|
39 .nf |
|
40 \f3 |
|
41 .fl |
|
42 rmiregistry [\fP\f4port\fP\f3] |
|
43 .fl |
|
44 \fP |
|
45 .fi |
|
46 |
|
47 .LP |
|
48 .SH "DESCRIPTION" |
|
49 .LP |
|
50 |
|
51 .LP |
|
52 .LP |
|
53 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: |
|
54 .LP |
|
55 .LP |
|
56 \f2rmiregistry &\fP |
|
57 .LP |
|
58 .LP |
|
59 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. |
|
60 .LP |
|
61 .LP |
|
62 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. |
|
63 .LP |
|
64 .LP |
|
65 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. |
|
66 .LP |
|
67 .LP |
|
68 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. |
|
69 .LP |
|
70 .SH "OPTIONS" |
|
71 .LP |
|
72 |
|
73 .LP |
|
74 .TP 3 |
|
75 \-J |
|
76 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. |
|
77 .LP |
|
78 .SH "SEE ALSO" |
|
79 .LP |
|
80 |
|
81 .LP |
|
82 .LP |
|
83 java, |
|
84 .na |
|
85 \f2java.rmi.registry.LocateRegistry\fP @ |
|
86 .fi |
|
87 http://java.sun.com/javase/6/docs/api/java/rmi/registry/locateregistry.html and |
|
88 .na |
|
89 \f2java.rmi.Naming\fP @ |
|
90 .fi |
|
91 http://java.sun.com/javase/6/docs/api/java/rmi/naming.html |
|
92 .LP |
|
93 |
|
94 .LP |
|
95 |