blob: ba2a9377b9abb839c8cf85a74530a365ec3e7a89 [file] [log] [blame]
duke6e45e102007-12-01 00:00:00 +00001." Copyright 2001-2006 Sun Microsystems, Inc. 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
19." CA 95054 USA or visit www.sun.com if you need additional information or
20." have any questions.
21."
tbell16c34dd2009-05-04 18:28:26 -070022.TH servertool 1 "04 May 2009"
23." Generated from HTML by html2man (author: Eric Armstrong)
duke6e45e102007-12-01 00:00:00 +000024
25.LP
tbell16c34dd2009-05-04 18:28:26 -070026.SH "Name"
duke6e45e102007-12-01 00:00:00 +000027servertool \- The Java(TM) IDL Server Tool
28.LP
tbell16c34dd2009-05-04 18:28:26 -070029.RS 3
duke6e45e102007-12-01 00:00:00 +000030
31.LP
tbell16c34dd2009-05-04 18:28:26 -070032\f3servertool\fP provides a command\-line interface for application programmers to register, unregister, startup, and shutdown a persistent server.
33.RE
duke6e45e102007-12-01 00:00:00 +000034.SH "SYNOPSIS"
35.LP
36
37.LP
38.nf
39\f3
40.fl
41servertool \-ORBInitialPort \fP\f4nameserverport\fP\f3 \fP\f3options\fP\f3 [ \fP\f3commands\fP\f3 ]
42.fl
43\fP
44.fi
45
46.LP
47.LP
48If you did not enter a command when starting \f2servertool\fP, the command\-line tool displays with a \f2servertool >\fP prompt. Enter commands at the \f2servertool >\fP prompt.
49.LP
50.LP
51If you enter a command when starting \f2servertool\fP, the Java IDL Server Tool starts, runs the command, and exits.
52.LP
53.LP
54The \f2\-ORBInitialPort\fP \f2nameserverport\fP option is \f3required\fP. The value for \f2nameserverport\fP must specify the port on which \f2orbd\fP is running and listening for incoming requests. When using Solaris software, you must become root to start a process on a port under 1024. For this reason, we recommend that you use a port number greater than or equal to 1024 for the \f2nameserverport\fP.
55.LP
56.SH "DESCRIPTION"
57.LP
58
59.LP
60.LP
61The \f2servertool\fP provides the command\-line interface for the application programmers to register, unregister, startup, and shutdown a persistent server. Other commands are provided to obtain various statistical information about the server.
62.LP
63.SH "OPTIONS"
64.LP
65
66.LP
tbell16c34dd2009-05-04 18:28:26 -070067.RS 3
duke6e45e102007-12-01 00:00:00 +000068.TP 3
69\-ORBInitialHost nameserverhost
70Specifies the host machine on which the name server is running and listening for incoming requests. The \f2nameserverhost\fP defaults to \f2localhost\fP if this option is not specified. If \f2orbd\fP and \f2servertool\fP are running on different machines, you must specify the name or IP address of the host on which \f2orbd\fP is running.
71.TP 3
72\-Joption
tbell16c34dd2009-05-04 18:28:26 -070073Pass \f2option\fP to the Java virtual machine, where \f2option\fP is one of the options described on the reference page for java(1). For example, \f3\-J\-Xms48m\fP sets the startup memory to 48 megabytes. It is a common convention for \f3\-J\fP to pass options to the underlying virtual machine.
74.RE
75
duke6e45e102007-12-01 00:00:00 +000076.LP
77.SH "COMMANDS"
78.LP
79
80.LP
tbell16c34dd2009-05-04 18:28:26 -070081.RS 3
duke6e45e102007-12-01 00:00:00 +000082.TP 3
tbell16c34dd2009-05-04 18:28:26 -070083register \-server\ <server\ class\ name> \ \-classpath\ <classpath\ to\ server> [\ \-applicationName\ <application\ name> \-args\ <args\ to\ server> \-vmargs\ <flags\ to\ be\ passed\ to\ Java\ VM> \ ]
duke6e45e102007-12-01 00:00:00 +000084Register a new persistent server with the Object Request Broker Daemon (ORBD). If the server is not already registered, it is registered and activated. This command causes an install method to be invoked in the main class of the server identified by the \f2\-server\fP option. The install method must be \f2public static void install(org.omg.CORBA.ORB)\fP. The install method is optional and enables the developer to provide their own server installation behavior (for example, creating database schema).
85.TP 3
tbell16c34dd2009-05-04 18:28:26 -070086unregister \-serverid\ <server\ id\ >\ | \-applicationName\ <application\ name>
duke6e45e102007-12-01 00:00:00 +000087Unregister a server from the ORBD by using either its server id or its application name. This command causes an uninstall method to be invoked in the main class of the server identified by the \f2\-server\fP option. The uninstall method must be \f2public static void uninstall(org.omg.CORBA.ORB)\fP. The uninstall method is optional and enables the developer to provide their own server uninstall behavior (for example, undoing the behavior of the install method).
88.TP 3
tbell16c34dd2009-05-04 18:28:26 -070089getserverid \-applicationName\ <application\ name>
duke6e45e102007-12-01 00:00:00 +000090Return the server id that corresponds with an application.
91.TP 3
92list
93List information about all persistent servers registered with the ORBD.
94.TP 3
95listappnames
96List the application names for all servers currently registered with the ORBD.
97.TP 3
98listactive
99List information about all persistent servers that have been launched by the ORBD and are currently running.
100.TP 3
tbell16c34dd2009-05-04 18:28:26 -0700101locate \-serverid\ <server\ id\ >\ | \-applicationName\ <application\ name> [\-endpointType\ <endpointType>\ ]
duke6e45e102007-12-01 00:00:00 +0000102Locate the endpoints (ports) of a specific type for all ORBs created by a registered server. If a server is not already running, it is activated. If an endpoint type is not specified, then the plain/non\-protected endpoint associated with each ORB in a server is returned.
103.TP 3
tbell16c34dd2009-05-04 18:28:26 -0700104locateperorb \-serverid\ <server\ id\ >\ | \-applicationName\ <application\ name> [\-orbid\ <ORB\ name>\ ]
duke6e45e102007-12-01 00:00:00 +0000105Locate all the endpoints (ports) registered by a specific ORB of registered server. If a server is not already running, then it is activated. If an \f2orbid\fP is not specified, the default value of "" is assigned to the \f2orbid\fP. If any ORBs are created with an \f2orbid\fP of empty string, all ports registered by it are returned.
106.TP 3
tbell16c34dd2009-05-04 18:28:26 -0700107orblist \-serverid\ <server\ id\ >\ | \-applicationName\ <application\ name>
duke6e45e102007-12-01 00:00:00 +0000108Lists the ORBId of the ORBs defined on a server. An ORBId is the string name for the ORB created by the server. If the server is not already running, it is activated.
109.TP 3
tbell16c34dd2009-05-04 18:28:26 -0700110shutdown \-serverid\ <server\ id\ >\ | \-applicationName\ <application\ name>
duke6e45e102007-12-01 00:00:00 +0000111Shutdown an active server that is registered with ORBD. During execution of this command, the \f2shutdown()\fP method defined in the class specified by either the \f2\-serverid\fP or \f2\-applicationName\fP parameter is also invoked to shutdown the server process appropriately.
112.TP 3
tbell16c34dd2009-05-04 18:28:26 -0700113startup \-serverid\ <server\ id\ >\ | \-applicationName\ <application\ name>
duke6e45e102007-12-01 00:00:00 +0000114Startup or activate a server that is registered with ORBD. If the server is not running, this command launches the server. If the server is already running, an error message is returned to the user.
115.TP 3
116help
117List all the commands available to the server through the server tool.
118.TP 3
119quit
120Exit the server tool.
tbell16c34dd2009-05-04 18:28:26 -0700121.RE
122
duke6e45e102007-12-01 00:00:00 +0000123.LP
124.SH "SEE ALSO"
125.LP
126
127.LP
tbell16c34dd2009-05-04 18:28:26 -0700128orbd(1)
duke6e45e102007-12-01 00:00:00 +0000129.LP
130