blob: bb6d4d98511e63e516a845e867716708a5adb98d [file] [log] [blame]
mfangfbb44202015-06-25 16:46:26 -07001'\" t
2.\" Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
rgallardb6435452013-11-25 20:19:02 -08003.\" 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20.\" or visit www.oracle.com if you need additional information or have any
21.\" questions.
22.\"
mfangfbb44202015-06-25 16:46:26 -070023.\" Arch: generic
24.\" Software: JDK 8
25.\" Date: 21 November 2013
26.\" SectDesc: Java IDL and RMI-IIOP Tools
27.\" Title: servertool.1
28.\"
29.if n .pl 99999
30.TH servertool 1 "21 November 2013" "JDK 8" "Java IDL and RMI-IIOP Tools"
rgallardb6435452013-11-25 20:19:02 -080031.\" -----------------------------------------------------------------
32.\" * Define some portability stuff
33.\" -----------------------------------------------------------------
34.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35.\" http://bugs.debian.org/507673
36.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
37.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
38.ie \n(.g .ds Aq \(aq
39.el .ds Aq '
40.\" -----------------------------------------------------------------
41.\" * set default formatting
42.\" -----------------------------------------------------------------
43.\" disable hyphenation
44.nh
45.\" disable justification (adjust text to left margin only)
46.ad l
47.\" -----------------------------------------------------------------
48.\" * MAIN CONTENT STARTS HERE *
49.\" -----------------------------------------------------------------
mfangfbb44202015-06-25 16:46:26 -070050
51.SH NAME
52servertool \- Provides an easy-to-use interface for developers to register, unregister, start up, and shut down a persistent server\&.
53.SH SYNOPSIS
54.sp
55.nf
56
57\fBservertool\fR \-ORBInitialPort \fInameserverport\fR [ \fIoptions\fR ] [ \fIcommands \fR]
58.fi
59.sp
60.TP
61\fIoptions\fR
62The command-line options\&. See Options\&.
63.TP
64commands
65The command-line commands\&. See Commands\&.
66.SH DESCRIPTION
67The \f3servertool\fR command provides the command-line interface for developers to register, unregister, start up, and shut down a persistent server\&. Command-line commands let you obtain various statistical information about the server\&. See Commands\&.
68.SH OPTIONS
69.TP
70-ORBInitialHost \fInameserverhost\fR
71.br
72This options is required\&. It specifies the host machine on which the name server runs and listens for incoming requests\&. The \f3nameserverhost\fR value must specify the port on which the \f3orb\fR is running and listening for requests\&. The value defaults to \f3localhost\fR when this option is not specified\&. If \f3orbd\fR and \f3servertool\fR are running on different machines, then you must specify the name or IP address of the host on which \f3orbd\fR is running\&.
73
74\fINote:\fR On Oracle Solaris, you must become a root user to start a process on a port below 1024\&. Oracle recommends that you use a port number above or equal to 1024 for the \f3nameserverport\fR value\&.
75.TP
76-J\fIoption\fR
77.br
78Passes \f3option\fR to the Java Virtual Machine, where \f3option\fR is one of the options described on the reference page for the Java application launcher\&. For example, \f3-J-Xms48m\fR sets the startup memory to 48 MB\&. See java(1)\&.
79.SH COMMANDS
80You can start the \f3servertool\fR command with or without a command-line command\&.
81.TP 0.2i
82\(bu
83If you did not specify a command when you started \f3servertool\fR, then the command-line tool displays the \f3servertool\fR prompt where you can enter commands: \f3servertool >\fR\&.
84.TP 0.2i
85\(bu
86If you specify a command when you start \f3servertool\fR, then the Java IDL Server Tool starts, executes the command, and exits\&.
87.TP
88.ll 180
89register -server \fIserver-class-name\fR -classpath \fIclasspath-to-server\fR [ -applicationName \fIapplication-name\fR -args \fIargs-to-server\fR -vmargs \fIflags-for-JVM\fR ]
90Registers a new persistent server with the Object Request Broker Daemon (ORBD)\&. If the server is not already registered, then it is registered and activated\&. This command causes an installation method to be called in the \f3main\fR class of the server identified by the \f3-server\fR option\&. The installation method must be \f3public static void install(org\&.omg\&.CORBA\&.ORB)\fR\&. The install method is optional and lets developers provide their own server installation behavior, such as creating a database schema\&.
91.TP
92.ll 180
93unregister -serverid \fIserver-id\fR | -applicationName \fIapplication-name\fR
94Unregisters a server from the ORBD with either its server ID or its application name\&. This command causes an uninstallation method to be called in the \f3main\fR class of the server identified by the \f3-server\fR option\&. The \f3uninstall\fR method must be \f3public static void uninstall(org\&.omg\&.CORBA\&.ORB)\fR\&. The \f3uninstall\fR method is optional and lets developers provide their own server uninstallation behavior, such as undoing the behavior of the \f3install\fR method\&.
95.TP
96getserverid -applicationName \fIapplication-name\fR
97Returns the server ID that corresponds to the \f3application-name\fR value\&.
98.TP
99list
100Lists information about all persistent servers registered with the ORBD\&.
101.TP
102listappnames
103Lists the application names for all servers currently registered with the ORBD\&.
104.TP
105listactive
106Lists information about all persistent servers that were started by the ORBD and are currently running\&.
107.TP
108.ll 180
109locate -serverid \fIserver-id\fR | -applicationName \fIapplication-name\fR [ -endpointType \fIendpointType\fR ]
110Locates the endpoints (ports) of a specific type for all ORBs created by a registered server\&. If a server is not already running, then it is activated\&. If an \f3endpointType\fR value is not specified, then the plain/non-protected endpoint associated with each ORB in a server is returned\&.
111.TP
112.ll 180
113locateperorb -serverid \fIserver-id\fR | -applicationName \fIapplication-name\fR [ -orbid \fIORB-name\fR ]
114Locates all the endpoints (ports) registered by a specific Object Request Broker (ORB) of registered server\&. If a server is not already running, then it is activated\&. If an \f3orbid\fR is not specified, then the default value of \f3""\fR is assigned to the \f3orbid\fR\&. If any ORBs are created with an \f3orbid\fR of empty string, then all ports registered by it are returned\&.
115.TP
116orblist -serverid \fIserver-id\fR | -applicationName \fIapplication-name\fR
117Lists the \f3ORBId\fR of the ORBs defined on a server\&. An \f3ORBId\fR is the string name for the ORB created by the server\&. If the server is not already running, then it is activated\&.
118.TP
119shutdown -serverid \fIserver-id\fR | -applicationName application-name
120Shut down an active server that is registered with ORBD\&. During execution of this command, the \f3shutdown\fR method defined in the class specified by either the \f3-serverid\fR or \f3-applicationName\fR parameter is also called to shut down the server process\&.
121.TP
122startup -serverid \fIserver-id\fR | -applicationName application-name
123Starts up or activate a server that is registered with ORBD\&. If the server is not running, then this command starts the server\&. If the server is already running, then an error message is displayed\&.
124.TP
125help
126Lists all the commands available to the server through the \f3servertool\fR command\&.
127.TP
128quit
129Exits the \f3servertool\fR command\&.
130.SH SEE\ ALSO
131.TP 0.2i
132\(bu
133orbd(1)
rgallardb6435452013-11-25 20:19:02 -0800134.RE
135.br
136'pl 8.5i
137'bp