." Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved. ." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. ." ." This code is free software; you can redistribute it and/or modify it ." under the terms of the GNU General Public License version 2 only, as ." published by the Free Software Foundation. ." ." This code is distributed in the hope that it will be useful, but WITHOUT ." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ." FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ." version 2 for more details (a copy is included in the LICENSE file that ." accompanied this code). ." ." You should have received a copy of the GNU General Public License version ." 2 along with this work; if not, write to the Free Software Foundation, ." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. ." ." Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA ." or visit www.oracle.com if you need additional information or have any ." questions. ." rmid - Online Linux Manual PageSection : 1
Updated : 16 Mar 2012
Namermid − The Java RMI Activation System Daemon rmid starts the activation system daemon that allows objects to be registered and activated in a virtual machine (VM).
SYNOPSIS
flrmid [options]
fl
DESCRIPTIONThe rmid tool starts the activation system daemon. The activation system daemon must be started before activatable objects can be either registered with the activation system or activated in a VM. See the Java RMI Specification @ .fi http://docs.oracle.com/javase/7/docs/platform/rmi/spec/rmiTOC.html and Activation tutorials @ .fi http://docs.oracle.com/javase/7/docs/technotes/guides/rmi/activation/overview.html for details on how to write programs that use activatable remote objects. The daemon can be started by executing the rmid command, and specifying a security policy file, as follows:
fl rmid −J−Djava.security.policy=rmid.policy
flNote: When running Sun's implementation of rmid, by default you will need to specify a security policy file so that rmid can verify whether or not the information in each ActivationGroupDesc is allowed to be used to launch a VM for an activation group. Specifically, the command and options specified by the CommandEnvironment and any Properties passed to an ActivationGroupDesc's constructor must now be explicitly allowed in the security policy file for rmid. The value of the sun.rmi.activation.execPolicy property dictates the policy that rmid uses to determine whether or not the information in an ActivationGroupDesc may be used to launch a VM for an activation group. Executing rmid by default o starts the Activator and an internal registry on the default port, 1098, and o binds an ActivationSystem to the name java.rmi.activation.ActivationSystem in this internal registry. To specify an alternate port for the registry, you must specify the −port option when starting up rmid. For example,
fl rmid −J−Djava.security.policy=rmid.policy −port 1099
flstarts the activation system daemon and a registry on the registry's default port, 1099.
Starting rmid from inetd/xinetd An alternative to starting rmid from the command line is to configure inetd (Solaris) or xinetd (Linux) to start rmid on demand. When rmid starts up, it attempts to obtain an inherited channel (inherited from inetd/xinetd) by invoking the System.inheritedChannel method. If the inherited channel is null or not an instance of java.nio.channels.ServerSocketChannel, then rmid assumes that it was not started by inetd/xinetd, and it starts up as described above. If the inherited channel is a ServerSocketChannel instance, then rmid uses the java.net.ServerSocket obtained from the ServerSocketChannel as the server socket that accepts requests for the remote objects it exports, namely the registry in which the java.rmi.activation.ActivationSystem is bound and the java.rmi.activation.Activator remote object. In this mode, rmid behaves the same as when it is started from the command line, except: o Output printed to System.err is redirected to a file. This file is located in the directory specified by the java.io.tmpdir system property (typically /var/tmp or /tmp) with the prefix "rmid−err" and the suffix "tmp". o The −port option is disallowed. If this option is specified, rmid will exit with an error message. o The −log option is required. If this option is not specified, rmid will exit with an error message. See the man pages for inetd (Solaris) or xinetd (Linux) for details on how to configure services to be started on demand.
OPTIONS−C<someCommandLineOption> Specifies an option that is passed as a command−line argument to each child process (activation group) of rmid when that process is created. For example, you could pass a property to each virtual machine spawned by the activation system daemon:
fl rmid −C−Dsome.property=value
flThis ability to pass command−line arguments to child processes can be useful for debugging. For example, the following command:
fl rmid −C−Djava.rmi.server.logCalls=true
flwill enable server−call logging in all child VMs. −J<someCommandLineOption> Specifies an option that is passed to the java interpreter running rmid. For example, to specify that rmid use a policy file named rmid.policy, the −J option can be used to define the java.security.policy property on rmid's command line, for example:
fl rmid −J−Djava.security.policy=rmid.policy
fl−J−Dsun.rmi.activation.execPolicy=<policy> Specifies the policy that rmid employs to check commands and command−line options used to launch the VM in which an activation group runs. Please note that this option exists only in Sun's implementation of the Java RMI activation daemon. If this property is not specified on the command line, the result is the same as if −J−Dsun.rmi.activation.execPolicy=default were specified. The possible values of <policy> can be default, <policyClassName>, or none: o default (or if this property is \f4unspecified\fP\f3)\fP The default execPolicy allows rmid to execute commands with specific command−line options only if rmid has been granted permission to execute those commands and options in the security policy file that rmid uses. Only the default activation group implementation can be used with the default execution policy. rmid launches a VM for an activation group using the information in the group's registered activation group descriptor, an ActivationGroupDesc. The group descriptor specifies an optional ActivationGroupDesc.CommandEnvironment which includes the command to execute to start the activation group as well as any command line options to be added to the command line. By default, rmid uses the java command found in java.home. The group descriptor also contains properties overrides that are added to the command line as options defined as:
fl −D\f4<property>\fP\f3=\fP\f4<value>\fP\f3
flThe permission com.sun.rmi.rmid.ExecPermission is used to grant rmid permission to execute a command, specified in the group descriptor's CommandEnvironment to launch an activation group. The permission com.sun.rmi.rmid.ExecOptionPermission is used to allow rmid to use command−line options, specified as properties overrides in the group descriptor or as options in the CommandEnvironment, when launching the activation group. When granting rmid permission to execute various commands and options, the permissions ExecPermission and ExecOptionPermission need to be granted universally (i.e., granted to all code sources). ExecPermission The ExecPermission class represents permission for rmid to execute a specific command to launch an activation group. Syntax
The name of an ExecPermission is the path name of a command to grant rmid permission to execute. A path name that ends in "/*" indicates all the files contained in that directory (where "/" is the file−separator character, File.separatorChar). A path name that ends with "/−" indicates all files and subdirectories contained in that directory (recursively). A path name consisting of the special token "<<ALL FILES>>" matches any file. Note: A path name consisting of a single "*" indicates all the files in the current directory, while a path name consisting of a single "−" indicates all the files in the current directory and (recursively) all files and subdirectories contained in the current directory. ExecOptionPermission The ExecOptionPermission class represents permission for rmid to use a specific command−line option when launching an activation group. The name of an ExecOptionPermission is the value of a command line option. Syntax
Options support a limited wildcard scheme. An asterisk signifies a wildcard match, and it may appear as the option name itself (i.e., it matches any option), or an asterisk may appear at the end of the option name only if the asterisk follows either a "." or "=". For example: "*" or "−Dfoo.*" or "−Da.b.c=*" is valid, "*foo" or "−Da*b" or "ab*" is not. Policy file for rmid When granting rmid permission to execute various commands and options, the permissions ExecPermission and ExecOptionPermission need to be granted universally (i.e., granted to all code sources). It is safe to grant these permissions universally because only rmid checks these permissions. An example policy file that grants various execute permissions to rmid is:
flgrant {
fl permission com.sun.rmi.rmid.ExecPermission
fl "/files/apps/java/jdk1.7.0/solaris/bin/java";
fl
fl permission com.sun.rmi.rmid.ExecPermission
fl "/files/apps/rmidcmds/*";
fl
fl permission com.sun.rmi.rmid.ExecOptionPermission
fl "−Djava.security.policy=/files/policies/group.policy";
fl
fl permission com.sun.rmi.rmid.ExecOptionPermission
fl "−Djava.security.debug=*";
fl
fl permission com.sun.rmi.rmid.ExecOptionPermission
fl "−Dsun.rmi.*";
fl};
flThe first permission granted allow rmid to execute the 1.7.0 version of the java command, specified by its explicit path name. Note that by default, the version of the java command found in java.home is used (the same one that rmid uses), and does not need to be specified in the policy file. The second permission allows rmid to execute any command in the directory /files/apps/rmidcmds. The third permission granted, an ExecOptionPermission, allows rmid to launch an activation group that defines the security policy file to be /files/policies/group.policy. The next permission allows the java.security.debug property to be used by an activation group. The last permission allows any property in the sun.rmi property name hierarchy to be used by activation groups. To start rmid with a policy file, the java.security.policy property needs to be specified on rmid's command line, for example: rmid −J−Djava.security.policy=rmid.policy o \f4<policyClassName>\fP If the default behavior is not flexible enough, an administrator can provide, when starting rmid, the name of a class whose checkExecCommand method is executed in order to check commands to be executed by rmid. The policyClassName specifies a public class with a public, no−argument constructor and an implementation of the following checkExecCommand method:
fl public void checkExecCommand(ActivationGroupDesc desc,
fl String[] command)
fl throws SecurityException;
flBefore launching an activation group, rmid calls the policy's checkExecCommand method, passing it the activation group descriptor and an array containing the complete command to launch the activation group. If the checkExecCommand throws a SecurityException, rmid will not launch the activation group and an ActivationException will be thrown to the caller attempting to activate the object. o none If the sun.rmi.activation.execPolicy property value is "none", then rmid will not perform any validation of commands to launch activation groups. −log dir Specifies the name of the directory the activation system daemon uses to write its database and associated information. The log directory defaults to creating a directory, log, in the directory in which the rmid command was executed. −port port Specifies the port rmid's registry uses. The activation system daemon binds the ActivationSystem, with the name java.rmi.activation.ActivationSystem, in this registry. Thus, the ActivationSystem on the local machine can be obtained using the following Naming.lookup method call:
fl import java.rmi.*;
fl import java.rmi.activation.*;
fl
fl ActivationSystem system; system = (ActivationSystem)
fl Naming.lookup("//:\f4port\fP/java.rmi.activation.ActivationSystem");
fl.fi
−stop
Stops the current invocation of rmid, for a port specified by the −port option. If no port is specified, it will stop the rmid running on port 1098.
ENVIRONMENT VARIABLES
CLASSPATH Used to provide the system a path to user−defined classes. Directories are separated by colons. For example:
fl .:/usr/local/java/classes
fl
SEE ALSOrmic(1), CLASSPATH @ .fi http://docs.oracle.com/javase/7/docs/technotes/tools/index.html#classpath, java(1) 0
Johanes Gumabo
Data Size : 44,898 byte
man-rmid-java-1.7.0-openjdk.1Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 4 / 179,975
Visitor ID : :
Visitor IP : 3.142.131.51 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (parse_manual_page_|249|rmid-java-1.7.0-openjdk.1|1|"|." Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.
) (parse_manual_page_|249|rmid-java-1.7.0-openjdk.1|2|"|." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
) (parse_manual_page_|249|rmid-java-1.7.0-openjdk.1|3|"|."
) (parse_manual_page_|249|rmid-java-1.7.0-openjdk.1|4|"|." This code is free software; you can redistribute it and/or modify it
) (parse_manual_page_|249|rmid-java-1.7.0-openjdk.1|5|"|." under the terms of the GNU General Public License version 2 only, as
) (parse_manual_page_|249|rmid-java-1.7.0-openjdk.1|6|"|." published by the Free Software Foundation.
) (parse_manual_page_|249|rmid-java-1.7.0-openjdk.1|7|"|."
) (parse_manual_page_|249|rmid-java-1.7.0-openjdk.1|8|"|." This code is distributed in the hope that it will be useful, but WITHOUT
) (parse_manual_page_|249|rmid-java-1.7.0-openjdk.1|9|"|." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
) (parse_manual_page_|249|rmid-java-1.7.0-openjdk.1|10|"|." FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
) (parse_manual_page_|249|rmid-java-1.7.0-openjdk.1|11|"|." version 2 for more details (a copy is included in the LICENSE file that
) (parse_manual_page_|249|rmid-java-1.7.0-openjdk.1|12|"|." accompanied this code).
) (parse_manual_page_|249|rmid-java-1.7.0-openjdk.1|13|"|."
) (parse_manual_page_|249|rmid-java-1.7.0-openjdk.1|14|"|." You should have received a copy of the GNU General Public License version
) (parse_manual_page_|249|rmid-java-1.7.0-openjdk.1|15|"|." 2 along with this work; if not, write to the Free Software Foundation,
) (parse_manual_page_|249|rmid-java-1.7.0-openjdk.1|16|"|." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
) (parse_manual_page_|249|rmid-java-1.7.0-openjdk.1|17|"|."
) (parse_manual_page_|249|rmid-java-1.7.0-openjdk.1|18|"|." Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
) (parse_manual_page_|249|rmid-java-1.7.0-openjdk.1|19|"|." or visit www.oracle.com if you need additional information or have any
) (parse_manual_page_|249|rmid-java-1.7.0-openjdk.1|20|"|." questions.
) (parse_manual_page_|249|rmid-java-1.7.0-openjdk.1|21|"|."
) (rof_fi|19|rmid-java-1.7.0-openjdk.1|48|1|.fi
) (rof_fi|19|rmid-java-1.7.0-openjdk.1|52|1|.fi
) (rof_escape_sequence|91|rmid-java-1.7.0-openjdk.1|165|\f4unspecified\fP\f3)\fP |\f3default (or if this property is \fP\f4unspecified\fP\f3)\fP
) (rof_escape_sequence|91|rmid-java-1.7.0-openjdk.1|173|\f4\fP\f3=\fP\f4\fP\f3|fl \-D\fP\f4\fP\f3=\fP\f4\fP\f3
) (rof_escape_sequence|91|rmid-java-1.7.0-openjdk.1|252|\f4\fP |\f4\fP
) (rof_escape_sequence|91|rmid-java-1.7.0-openjdk.1|294|\f4port\fP/java.rmi.activation.ActivationSystem");|fl Naming.lookup("//:\fP\f4port\fP/java.rmi.activation.ActivationSystem");
) (rof_fi|19|rmid-java-1.7.0-openjdk.1|325|1|.fi
)