1 .\" Copyright (c) 1994, 2019, 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 .\" Automatically generated by Pandoc 2.3.1
  23 .\"
  24 .TH "RMIREGISTRY" "1" "2018" "JDK 13" "JDK Commands"
  25 .hy
  26 .SH NAME
  27 .PP
  28 rmiregistry \- create and start a remote object registry on the
  29 specified port on the current host
  30 .SH SYNOPSIS
  31 .PP
  32 \f[CB]rmiregistry\f[R] [\f[I]options\f[R]] [\f[I]port\f[R]]
  33 .TP
  34 .B \f[I]options\f[R]
  35 This represents the option for the \f[CB]rmiregistry\f[R] command.
  36 See \f[B]Options\f[R]
  37 .RS
  38 .RE
  39 .TP
  40 .B \f[I]port\f[R]
  41 The number of a port on the current host at which to start the remote
  42 object registry.
  43 .RS
  44 .RE
  45 .SH DESCRIPTION
  46 .PP
  47 The \f[CB]rmiregistry\f[R] command creates and starts a remote object
  48 registry on the specified port on the current host.
  49 If the port is omitted, then the registry is started on port 1099.
  50 The \f[CB]rmiregistry\f[R] command produces no output and is typically run
  51 in the background, for example:
  52 .RS
  53 .PP
  54 \f[CB]rmiregistry\ &\f[R]
  55 .RE
  56 .PP
  57 A remote object registry is a bootstrap naming service that\[aq]s used
  58 by RMI servers on the same host to bind remote objects to names.
  59 Clients on local and remote hosts can then look up remote objects and
  60 make remote method invocations.
  61 .PP
  62 The registry is typically used to locate the first remote object on
  63 which an application needs to call methods.
  64 That object then provides application\-specific support for finding
  65 other objects.
  66 .PP
  67 The methods of the \f[CB]java.rmi.registry.LocateRegistry\f[R] class are
  68 used to get a registry operating on the local host or local host and
  69 port.
  70 .PP
  71 The URL\-based methods of the \f[CB]java.rmi.Naming\f[R] class operate on
  72 a registry and can be used to:
  73 .IP \[bu] 2
  74 Bind the specified name to a remote object
  75 .IP \[bu] 2
  76 Return an array of the names bound in the registry
  77 .IP \[bu] 2
  78 Return a reference, a stub, for the remote object associated with the
  79 specified name
  80 .IP \[bu] 2
  81 Rebind the specified name to a new remote object
  82 .IP \[bu] 2
  83 Destroy the binding for the specified name that\[aq]s associated with a
  84 remote object
  85 .SH OPTIONS
  86 .TP
  87 .B \f[CB]\-J\f[R]\f[I]option\f[R]
  88 Used with any Java option to pass the \f[I]option\f[R] following the
  89 \f[CB]\-J\f[R] (no spaces between the \f[CB]\-J\f[R] and the option) to the
  90 Java interpreter.
  91 .RS
  92 .RE