1
.\" Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
2
.\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
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.
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).
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.
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
22
.\" Automatically generated by Pandoc 2.19.2
24
.\" Define V font for inline verbatim, using C font in formats
25
.\" that render this, and otherwise B font.
26
.ie "\f[CB]x\f[R]"x" \{\
38
.TH "RMIREGISTRY" "1" "2025" "JDK 24-ea" "JDK Commands"
42
rmiregistry - create and start a remote object registry on the specified
43
port on the current host
46
\f[V]rmiregistry\f[R] [\f[I]options\f[R]] [\f[I]port\f[R]]
49
This represents the option for the \f[V]rmiregistry\f[R] command.
53
The number of a port on the current host at which to start the remote
57
The \f[V]rmiregistry\f[R] command creates and starts a remote object
58
registry on the specified port on the current host.
59
If the port is omitted, then the registry is started on port 1099.
60
The \f[V]rmiregistry\f[R] command produces no output and is typically
61
run in the background, for example:
64
\f[V]rmiregistry &\f[R]
67
A remote object registry is a bootstrap naming service that\[aq]s used
68
by RMI servers on the same host to bind remote objects to names.
69
Clients on local and remote hosts can then look up remote objects and
70
make remote method invocations.
72
The registry is typically used to locate the first remote object on
73
which an application needs to call methods.
74
That object then provides application-specific support for finding other
77
The methods of the \f[V]java.rmi.registry.LocateRegistry\f[R] class are
78
used to get a registry operating on the local host or local host and
81
The URL-based methods of the \f[V]java.rmi.Naming\f[R] class operate on
82
a registry and can be used to:
84
Bind the specified name to a remote object
86
Return an array of the names bound in the registry
88
Return a reference, a stub, for the remote object associated with the
91
Rebind the specified name to a new remote object
93
Destroy the binding for the specified name that\[aq]s associated with a
97
\f[V]-J\f[R]\f[I]option\f[R]
98
Used with any Java option to pass the \f[I]option\f[R] following the
99
\f[V]-J\f[R] (no spaces between the \f[V]-J\f[R] and the option) to the