src/java.rmi/share/man/rmid.1
author egahlin
Wed, 30 Oct 2019 17:02:26 +0100
branchJEP-349-branch
changeset 58862 abeb87af766e
parent 55140 d4890c3721be
permissions -rw-r--r--
Make TestSetEndTime more stable
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
     1
.\" Copyright (c) 1994, 2019, Oracle and/or its affiliates. All rights reserved.
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     2
.\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     3
.\"
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     4
.\" This code is free software; you can redistribute it and/or modify it
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     5
.\" under the terms of the GNU General Public License version 2 only, as
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     6
.\" published by the Free Software Foundation.
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     7
.\"
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     8
.\" This code is distributed in the hope that it will be useful, but WITHOUT
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
     9
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    10
.\" FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    11
.\" version 2 for more details (a copy is included in the LICENSE file that
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    12
.\" accompanied this code).
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    13
.\"
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    14
.\" You should have received a copy of the GNU General Public License version
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    15
.\" 2 along with this work; if not, write to the Free Software Foundation,
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    16
.\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    17
.\"
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    18
.\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    19
.\" or visit www.oracle.com if you need additional information or have any
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    20
.\" questions.
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
    21
.\"
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    22
.\" Automatically generated by Pandoc 2.3.1
21743
3d979da7bdf0 8029043: Update nroff files for JDK 8
rgallard
parents: 14342
diff changeset
    23
.\"
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    24
.TH "RMID" "1" "2018" "JDK 13" "JDK Commands"
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    25
.hy
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    26
.SH NAME
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    27
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    28
rmid \- start the activation system daemon that enables objects to be
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    29
registered and activated in a Java Virtual Machine (JVM)
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    30
.SH SYNOPSIS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    31
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    32
\f[CB]rmid\f[R] [\f[I]options\f[R]]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    33
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    34
.B \f[I]options\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    35
This represent the command\-line options for the \f[CB]rmid\f[R] command.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    36
See \f[B]Options for rmid\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    37
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    38
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    39
.SH DESCRIPTION
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    40
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    41
The \f[CB]rmid\f[R] command starts the activation system daemon.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    42
The activation system daemon must be started before objects that can be
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    43
activated are either registered with the activation system or activated
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    44
in a JVM.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    45
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    46
Start the daemon by executing the \f[CB]rmid\f[R] command and specifying a
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    47
security policy file, as follows:
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    48
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    49
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    50
\f[CB]rmid\ \-J\-Djava.security.policy=rmid.policy\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    51
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    52
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    53
When you run Oracle\[aq]s implementation of the \f[CB]rmid\f[R] command,
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    54
by default you must specify a security policy file so that the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    55
\f[CB]rmid\f[R] command can verify whether or not the information in each
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    56
\f[CB]ActivationGroupDesc\f[R] is allowed to be used to start a JVM for an
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    57
activation group.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    58
Specifically, the command and options specified by the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    59
\f[CB]CommandEnvironment\f[R] and any properties passed to an
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    60
\f[CB]ActivationGroupDesc\f[R] constructor must now be explicitly allowed
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    61
in the security policy file for the \f[CB]rmid\f[R] command.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    62
The value of the \f[CB]sun.rmi.activation.execPolicy\f[R] property
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    63
dictates the policy that the \f[CB]rmid\f[R] command uses to determine
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    64
whether or not the information in an \f[CB]ActivationGroupDesc\f[R] can be
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    65
used to start a JVM for an activation group.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    66
For more information see the description of the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    67
\f[CB]\-J\-Dsun.rmi.activation.execPolicy=policy\f[R] option.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    68
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    69
Executing the \f[CB]rmid\f[R] command starts the \f[CB]Activator\f[R] and an
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    70
internal registry on the default port 1098 and binds an
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    71
\f[CB]ActivationSystem\f[R] to the name
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    72
\f[CB]java.rmi.activation.ActivationSystem\f[R] in this internal registry.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    73
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    74
To specify an alternate port for the registry, you must specify the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    75
\f[CB]\-port\f[R] option when you execute the \f[CB]rmid\f[R] command.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    76
For example, the following command starts the activation system daemon
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    77
and a registry on the registry\[aq]s default port, 1099.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    78
.RS
21743
3d979da7bdf0 8029043: Update nroff files for JDK 8
rgallard
parents: 14342
diff changeset
    79
.PP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    80
\f[CB]rmid\ \-J\-Djava.security.policy=rmid.policy\ \-port\ 1099\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    81
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    82
.SH START RMID ON DEMAND (ORACLE SOLARIS AND LINUX ONLY)
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    83
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    84
An alternative to starting \f[CB]rmid\f[R] from the command line is to
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    85
configure \f[CB]inetd\f[R] (Oracle Solaris) or \f[CB]xinetd\f[R] (Linux) to
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    86
start \f[CB]rmid\f[R] on demand.
21743
3d979da7bdf0 8029043: Update nroff files for JDK 8
rgallard
parents: 14342
diff changeset
    87
.PP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    88
When RMID starts, it attempts to obtain an inherited channel (inherited
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    89
from \f[CB]inetd\f[R]/\f[CB]xinetd\f[R]) by calling the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    90
\f[CB]System.inheritedChannel\f[R] method.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    91
If the inherited channel is null or not an instance of
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    92
\f[CB]java.nio.channels.ServerSocketChannel\f[R], then RMID assumes that
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    93
it wasn\[aq]t started by \f[CB]inetd\f[R]/\f[CB]xinetd\f[R], and it starts
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    94
as previously described.
21743
3d979da7bdf0 8029043: Update nroff files for JDK 8
rgallard
parents: 14342
diff changeset
    95
.PP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    96
If the inherited channel is a \f[CB]ServerSocketChannel\f[R] instance,
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    97
then RMID uses the \f[CB]java.net.ServerSocket\f[R] obtained from the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    98
\f[CB]ServerSocketChannel\f[R] as the server socket that accepts requests
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
    99
for the remote objects it exports: The registry in which the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   100
\f[CB]java.rmi.activation.ActivationSystem\f[R] is bound and the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   101
\f[CB]java.rmi.activation.Activator\f[R] remote object.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   102
In this mode, RMID behaves the same as when it is started from the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   103
command line, except in the following cases:
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   104
.IP \[bu] 2
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   105
Output printed to \f[CB]System.err\f[R] is redirected to a file.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   106
This file is located in the directory specified by the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   107
\f[CB]java.io.tmpdir\f[R] system property (typically \f[CB]/var/tmp\f[R] or
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   108
\f[CB]/tmp\f[R]) with the prefix \f[CB]rmid\-err\f[R] and the suffix
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   109
\f[CB]tmp\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   110
.IP \[bu] 2
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   111
The \f[CB]\-port\f[R] option isn\[aq]t allowed.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   112
If this option is specified, then RMID exits with an error message.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   113
.IP \[bu] 2
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   114
The \f[CB]\-log\f[R] option is required.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   115
If this option isn\[aq]t specified, then RMID exits with an error
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   116
message
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   117
.SH OPTIONS FOR RMID
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   118
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   119
.B \f[CB]\-C\f[R]\f[I]option\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   120
Specifies an option that\[aq]s passed as a command\-line argument to
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   121
each child process (activation group) of the \f[CB]rmid\f[R] command when
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   122
that process is created.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   123
For example, you could pass a property to each virtual machine spawned
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   124
by the activation system daemon:
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   125
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   126
.RS
21743
3d979da7bdf0 8029043: Update nroff files for JDK 8
rgallard
parents: 14342
diff changeset
   127
.PP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   128
\f[CB]rmid\ \-C\-Dsome.property=value\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   129
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   130
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   131
This ability to pass command\-line arguments to child processes can be
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   132
useful for debugging.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   133
For example, the following command enables server\-call logging in all
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   134
child JVMs.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   135
.RS
21743
3d979da7bdf0 8029043: Update nroff files for JDK 8
rgallard
parents: 14342
diff changeset
   136
.PP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   137
\f[CB]rmid\ \-C\-Djava.rmi.server.logCalls=true\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   138
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   139
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   140
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   141
.B \f[CB]\-J\f[R]\f[I]option\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   142
Specifies an option that\[aq]s passed to the Java interpreter running
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   143
RMID command.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   144
For example, to specify that the \f[CB]rmid\f[R] command use a policy file
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   145
named \f[CB]rmid.policy\f[R], the \f[CB]\-J\f[R] option can be used to
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   146
define the \f[CB]java.security.policy\f[R] property on the \f[CB]rmid\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   147
command line, for example:
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   148
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   149
.RS
21743
3d979da7bdf0 8029043: Update nroff files for JDK 8
rgallard
parents: 14342
diff changeset
   150
.PP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   151
\f[CB]rmid\ \-J\-Djava.security.policy\-rmid.policy\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   152
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   153
.RE
21743
3d979da7bdf0 8029043: Update nroff files for JDK 8
rgallard
parents: 14342
diff changeset
   154
.TP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   155
.B \f[CB]\-J\-Dsun.rmi.activation.execPolicy=\f[R]\f[I]policy\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   156
Specifies the policy that the RMID command employs to check commands and
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   157
command\-line options used to start the JVM in which an activation group
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   158
runs.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   159
This option exists only in Oracle\[aq]s implementation of the Java RMI
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   160
activation daemon.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   161
If this property isn\[aq]t specified on the command line, then the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   162
result is the same as though
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   163
\f[CB]\-J\-Dsun.rmi.activation.execPolicy=default\f[R] were specified.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   164
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   165
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   166
The possible values of \f[I]policy\f[R] can be \f[CB]default\f[R],
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   167
\f[I]policyClassName\f[R], or \f[CB]none\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   168
.IP \[bu] 2
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   169
\f[CB]default\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   170
.RS 2
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   171
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   172
The \f[CB]default\f[R] or unspecified value \f[CB]execPolicy\f[R] allows the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   173
\f[CB]rmid\f[R] command to execute commands with specific command\-line
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   174
options only when the \f[CB]rmid\f[R] command was granted permission to
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   175
execute those commands and options in the security policy file that the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   176
\f[CB]rmid\f[R] command uses.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   177
Only the default activation group implementation can be used with the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   178
default execution policy.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   179
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   180
The \f[CB]rmid\f[R] command starts a JVM for an activation group with the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   181
information in the group\[aq]s registered activation group descriptor,
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   182
\f[CB]ActivationGroupDesc\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   183
The group descriptor specifies an optional
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   184
\f[CB]ActivationGroupDesc.CommandEnvironment\f[R] that includes the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   185
command to execute to start the activation group and any command\-line
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   186
options to be added to the command line.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   187
By default, the \f[CB]rmid\f[R] command uses the \f[CB]java\f[R] command
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   188
found in \f[CB]java.home\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   189
The group descriptor also contains properties overrides that are added
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   190
to the command line as options defined as:
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   191
\f[CB]\-D\f[R]\f[I]property\f[R]\f[CB]=\f[R]\f[I]value\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   192
The \f[CB]com.sun.rmi.rmid.ExecPermission\f[R] permission grants the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   193
\f[CB]rmid\f[R] command permission to execute a command that\[aq]s
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   194
specified in the group descriptor\[aq]s \f[CB]CommandEnvironment\f[R] to
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   195
start an activation group.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   196
The \f[CB]com.sun.rmi.rmid.ExecOptionPermission\f[R] permission enables
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   197
the \f[CB]rmid\f[R] command to use command\-line options, specified as
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   198
properties overrides in the group descriptor or as options in the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   199
\f[CB]CommandEnvironment\f[R] when starting the activation group.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   200
When granting the \f[CB]rmid\f[R] command permission to execute various
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   201
commands and options, the permissions \f[CB]ExecPermission\f[R] and
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   202
\f[CB]ExecOptionPermission\f[R] must be granted to all code sources.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   203
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   204
\f[CB]ExecPermission\f[R] class: Represents permission for the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   205
\f[CB]rmid\f[R] command to execute a specific command to start an
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   206
activation group.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   207
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   208
\f[CB]ExecPermission\f[R] syntax: The name of \f[CB]ExecPermission\f[R] is
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   209
the path name of a command to grant the \f[CB]rmid\f[R] command permission
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   210
to execute.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   211
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   212
A path name that ends in a slash (\f[CB]/\f[R]) and an asterisk
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   213
(\f[CB]*\f[R]) indicates that all of the files are contained in that
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   214
directory where the slash is the file\-separator character,
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   215
\f[CB]File.separatorChar\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   216
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   217
A path name that ends in a slash (\f[CB]/\f[R]) and a minus sign
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   218
(\f[CB]\-\f[R]) indicates that all files and subdirectories are contained
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   219
in that directory (recursively).
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   220
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   221
A path name that consists of the special token \f[CB]<<ALL\ FILES>>\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   222
matches any file.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   223
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   224
A path name that consists of an asterisk (\f[CB]*\f[R]) indicates that all
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   225
the files are in the current directory.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   226
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   227
A path name that consists of a minus sign (\f[CB]\-\f[R]) indicates that
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   228
all the files are in the current directory and (recursively) all files
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   229
and subdirectories are contained in the current directory.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   230
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   231
\f[CB]ExecOptionPermission\f[R] class: Represents permission for the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   232
\f[CB]rmid\f[R] command to use a specific command\-line option when
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   233
starting an activation group.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   234
The name of \f[CB]ExecOptionPermission\f[R] is the value of a
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   235
command\-line option.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   236
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   237
\f[CB]ExecOptionPermission\f[R] syntax: Options support a limited wild
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   238
card scheme.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   239
An asterisk signifies a wild card match, and it can appear as the option
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   240
name itself (matches any option), or an asterisk (*) can appear at the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   241
end of the option name only when the asterisk (\f[CB]*\f[R]) follows a dot
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   242
(\f[CB]\&.\f[R]) or an equals sign (\f[CB]=\f[R]).
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   243
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   244
For example: \f[CB]*\f[R] or \f[CB]\-Dmydir.*\f[R] or \f[CB]\-Da.b.c=*\f[R] is
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   245
valid, but \f[CB]*mydir\f[R] or \f[CB]\-Da*b\f[R] or \f[CB]ab*\f[R] isn\[aq]t
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   246
valid.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   247
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   248
\f[B]Policy file for rmid\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   249
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   250
When you grant the \f[CB]rmid\f[R] command permission to execute various
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   251
commands and options, the permissions \f[CB]ExecPermission\f[R] and
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   252
\f[CB]ExecOptionPermission\f[R] must be granted to all code sources
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   253
(universally).
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   254
It is safe to grant these permissions universally because only the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   255
\f[CB]rmid\f[R] command checks these permissions.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   256
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   257
An example policy file that grants various execute permissions to the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   258
\f[CB]rmid\f[R] command is:
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   259
.IP \[bu] 2
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   260
\f[B]Oracle Solaris:\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   261
.RS 2
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   262
.IP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   263
.nf
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   264
\f[CB]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   265
grant\ {
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   266
\ \ \ \ permission\ com.sun.rmi.rmid.ExecPermission
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   267
\ \ \ \ \ \ \ \ "/files/apps/java/jdk1.7.0/solaris/bin/java";
21743
3d979da7bdf0 8029043: Update nroff files for JDK 8
rgallard
parents: 14342
diff changeset
   268
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   269
\ \ \ \ permission\ com.sun.rmi.rmid.ExecPermission
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   270
\ \ \ \ \ \ \ \ "/files/apps/rmidcmds/*";
21743
3d979da7bdf0 8029043: Update nroff files for JDK 8
rgallard
parents: 14342
diff changeset
   271
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   272
\ \ \ \ permission\ com.sun.rmi.rmid.ExecOptionPermission
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   273
\ \ \ \ \ \ \ \ "\-Djava.security.policy=/files/policies/group.policy";
21743
3d979da7bdf0 8029043: Update nroff files for JDK 8
rgallard
parents: 14342
diff changeset
   274
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   275
\ \ \ \ permission\ com.sun.rmi.rmid.ExecOptionPermission
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   276
\ \ \ \ \ \ \ \ "\-Djava.security.debug=*";
12047
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   277
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   278
\ \ \ \ permission\ com.sun.rmi.rmid.ExecOptionPermission
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   279
\ \ \ \ \ \ \ \ "\-Dsun.rmi.*";
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   280
};
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   281
\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   282
.fi
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   283
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   284
.IP \[bu] 2
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   285
\f[B]Windows:\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   286
.RS 2
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   287
.IP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   288
.nf
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   289
\f[CB]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   290
grant\ {
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   291
\ \ \ \ permission\ com.sun.rmi.rmid.ExecPermission
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   292
\ \ \ \ \ \ \ \ "c:\\\\files\\\\apps\\\\java\\\\jdk1.7.0\\\\win\\\\bin\\\\java";
21743
3d979da7bdf0 8029043: Update nroff files for JDK 8
rgallard
parents: 14342
diff changeset
   293
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   294
\ \ \ \ permission\ com.sun.rmi.rmid.ExecPermission
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   295
\ \ \ \ \ \ \ \ "c:\\\\files\\\\apps\\\\rmidcmds\\\\*";
21743
3d979da7bdf0 8029043: Update nroff files for JDK 8
rgallard
parents: 14342
diff changeset
   296
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   297
\ \ \ \ permission\ com.sun.rmi.rmid.ExecOptionPermission
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   298
\ \ \ \ \ \ \ \ "\-Djava.security.policy=c:\\\\files\\\\policies\\\\group.policy";
12047
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   299
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   300
\ \ \ \ permission\ com.sun.rmi.rmid.ExecOptionPermission
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   301
\ \ \ \ \ \ \ \ "\-Djava.security.debug=*";
21743
3d979da7bdf0 8029043: Update nroff files for JDK 8
rgallard
parents: 14342
diff changeset
   302
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   303
\ \ \ \ permission\ com.sun.rmi.rmid.ExecOptionPermission
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   304
\ \ \ \ \ \ \ \ "\-Dsun.rmi.*";
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   305
};
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   306
\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   307
.fi
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   308
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   309
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   310
The first permission granted allows the \f[CB]rmid\f[R] command to execute
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   311
the 1.7.0 release of the \f[CB]java\f[R] command, specified by its
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   312
explicit path name.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   313
By default, the version of the \f[CB]java\f[R] command found in
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   314
\f[CB]java.home\f[R] is used (the same one that the \f[CB]rmid\f[R] command
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   315
uses), and doesn\[aq]t need to be specified in the policy file.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   316
The second permission allows the \f[CB]rmid\f[R] command to execute any
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   317
command in either the directory \f[CB]/files/apps/rmidcmds\f[R] (Oracle
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   318
Solaris, Linux, and macOS) or the directory
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   319
\f[CB]c:\\files\\apps\\rmidcmds\\\f[R] (Windows).
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   320
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   321
The third permission granted, \f[CB]ExecOptionPermission\f[R], allows the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   322
\f[CB]rmid\f[R] command to start an activation group that defines the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   323
security policy file to be either \f[CB]/files/policies/group.policy\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   324
(Oracle Solaris) or \f[CB]c:\\files\\policies\\group.policy\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   325
(Windows).
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   326
The next permission allows the \f[CB]java.security.debug\ property\f[R] to
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   327
be used by an activation group.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   328
The last permission allows any property in the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   329
\f[CB]sun.rmi\ property\f[R] name hierarchy to be used by activation
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   330
groups.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   331
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   332
To start the \f[CB]rmid\f[R] command with a policy file, the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   333
\f[CB]java.security.policy\f[R] property needs to be specified on the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   334
\f[CB]rmid\f[R] command line, for example:
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   335
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   336
\f[CB]rmid\ \-J\-Djava.security.policy=rmid.policy\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   337
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   338
.IP \[bu] 2
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   339
\f[I]policyClassName\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   340
.RS 2
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   341
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   342
If the default behavior isn\[aq]t flexible enough, then an administrator
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   343
can provide, when starting the \f[CB]rmid\f[R] command, the name of a
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   344
class whose \f[CB]checkExecCommand\f[R] method is executed to check
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   345
commands to be executed by the \f[CB]rmid\f[R] command.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   346
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   347
The \f[CB]policyClassName\f[R] specifies a public class with a public,
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   348
no\-argument constructor and an implementation of the following
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   349
\f[CB]checkExecCommand\f[R] method:
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   350
.IP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   351
.nf
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   352
\f[CB]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   353
\ public\ void\ checkExecCommand(ActivationGroupDesc\ desc,\ String[]\ command)
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   354
\ \ \ \ \ \ \ \ throws\ SecurityException;
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   355
\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   356
.fi
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   357
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   358
Before starting an activation group, the \f[CB]rmid\f[R] command calls the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   359
policy\[aq]s \f[CB]checkExecCommand\f[R] method and passes to it the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   360
activation group descriptor and an array that contains the complete
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   361
command to start the activation group.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   362
If the \f[CB]checkExecCommand\f[R] throws a \f[CB]SecurityException\f[R],
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   363
then the \f[CB]rmid\f[R] command doesn\[aq]t start the activation group
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   364
and an \f[CB]ActivationException\f[R] is thrown to the caller attempting
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   365
to activate the object.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   366
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   367
.IP \[bu] 2
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   368
\f[CB]none\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   369
.RS 2
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   370
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   371
If the \f[CB]sun.rmi.activation.execPolicy\f[R] property value is
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   372
\f[CB]none\f[R], then the \f[CB]rmid\f[R] command doesn\[aq]t perform any
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   373
validation of commands to start activation groups.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   374
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   375
.RE
21743
3d979da7bdf0 8029043: Update nroff files for JDK 8
rgallard
parents: 14342
diff changeset
   376
.TP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   377
.B \f[CB]\-log\f[R] \f[I]dir\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   378
Specifies the name of the directory that the activation system daemon
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   379
uses to write its database and associated information.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   380
The log directory defaults to creating a log, in the directory in which
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   381
the \f[CB]rmid\f[R] command was executed.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   382
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   383
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   384
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   385
.B \f[CB]\-port\f[R] \f[I]port\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   386
Specifies the port that the registry uses.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   387
The activation system daemon binds \f[CB]ActivationSystem\f[R], with the
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   388
name \f[CB]java.rmi.activation.ActivationSystem\f[R], in this registry.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   389
The \f[CB]ActivationSystem\f[R] on the local machine can be obtained using
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   390
the following \f[CB]Naming.lookup\f[R] method call:
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   391
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   392
.IP
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   393
.nf
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   394
\f[CB]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   395
import\ java.rmi.*;
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   396
import\ java.rmi.activation.*;
12047
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
diff changeset
   397
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   398
ActivationSystem\ system;\ system\ =\ (ActivationSystem)
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   399
Naming.lookup("//:port/java.rmi.activation.ActivationSystem");
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   400
\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   401
.fi
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   402
.RE
21743
3d979da7bdf0 8029043: Update nroff files for JDK 8
rgallard
parents: 14342
diff changeset
   403
.TP
55140
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   404
.B \f[CB]\-stop\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   405
Stops the current invocation of the \f[CB]rmid\f[R] command for a port
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   406
specified by the \f[CB]\-port\f[R] option.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   407
If no port is specified, then this option stops the \f[CB]rmid\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   408
invocation running on port 1098.
d4890c3721be 8225134: Update man-page files
jjg
parents: 52714
diff changeset
   409
.RS
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 21743
diff changeset
   410
.RE