servertool.1 revision 0
220N/A.'" t
220N/A."
220N/A." Copyright 2001-2006 Sun Microsystems, Inc. All Rights Reserved.
220N/A." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
220N/A."
220N/A." This code is free software; you can redistribute it and/or modify it
220N/A." under the terms of the GNU General Public License version 2 only, as
220N/A." published by the Free Software Foundation.
220N/A."
220N/A." This code is distributed in the hope that it will be useful, but WITHOUT
220N/A." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
220N/A." FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
220N/A." version 2 for more details (a copy is included in the LICENSE file that
220N/A." accompanied this code).
220N/A."
220N/A." You should have received a copy of the GNU General Public License version
220N/A." 2 along with this work; if not, write to the Free Software Foundation,
220N/A." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
220N/A."
220N/A." Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
220N/A." CA 95054 USA or visit www.sun.com if you need additional information or
220N/A." have any questions.
220N/A."
220N/A." `
220N/A.TH servertool 1 "05 Aug 2006"
220N/A." Generated by html2roff
220N/A
220N/A.LP
220N/A.SH NAME
220N/Aservertool \- The Java(TM) IDL Server Tool
220N/A.LP
220N/A
220N/A.LP
220N/A\f3servertool\fP provides a command\-line interface for application programmers to register, unregister, startup, and shutdown a persistent server.
220N/A.SH "SYNOPSIS"
220N/A.LP
220N/A
220N/A.LP
220N/A.nf
220N/A\f3
220N/A.fl
220N/Aservertool \-ORBInitialPort \fP\f4nameserverport\fP\f3 \fP\f3options\fP\f3 [ \fP\f3commands\fP\f3 ]
220N/A.fl
220N/A\fP
220N/A.fi
220N/A
220N/A.LP
220N/A.LP
220N/AIf 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.
220N/A.LP
220N/A.LP
220N/AIf you enter a command when starting \f2servertool\fP, the Java IDL Server Tool starts, runs the command, and exits.
220N/A.LP
220N/A.LP
220N/AThe \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.
220N/A.LP
220N/A.SH "DESCRIPTION"
220N/A.LP
220N/A
220N/A.LP
220N/A.LP
220N/AThe \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.
220N/A.LP
220N/A.SH "OPTIONS"
220N/A.LP
220N/A
220N/A.LP
220N/A.TP 3
220N/A\-ORBInitialHost nameserverhost
220N/ASpecifies 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.
220N/A.TP 3
220N/A\-Joption
220N/APass \f2option\fP to the Java virtual machine, where \f2option\fP is one of the options described on the reference page for the
220N/A.na
220N/A\f2java a pplication launcher\fP @
220N/A.fi
220N/Ahttp://java.sun.com/javase/6/docs/technotes/tools/solaris/java.html. 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.
220N/A.LP
220N/A.SH "COMMANDS"
220N/A.LP
220N/A
220N/A.LP
220N/A.TP 3
220N/Aregister \-server\ <server\ class\ name>
220N/A\ \-classpath\ <classpath\ to\ server>
220N/A[\ \-applicationName\ <application\ name>
220N/A\-args\ <args\ to\ server>
220N/A\-vmargs\ <flags\ to\ be\ passed\ to\ Java\ VM>
220N/A\ ]
220N/ARegister 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).
220N/A.TP 3
220N/Aunregister
220N/A\-serverid\ <server\ id\ >\ |
220N/A\-applicationName\ <application\ name>
220N/AUnregister 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).
220N/A.TP 3
220N/Agetserverid
220N/A\-applicationName\ <application\ name>
220N/AReturn the server id that corresponds with an application.
220N/A.TP 3
220N/Alist
220N/AList information about all persistent servers registered with the ORBD.
220N/A.TP 3
220N/Alistappnames
220N/AList the application names for all servers currently registered with the ORBD.
220N/A.TP 3
220N/Alistactive
220N/AList information about all persistent servers that have been launched by the ORBD and are currently running.
220N/A.TP 3
220N/Alocate \-serverid\ <server\ id\ >\ |
220N/A\-applicationName\ <application\ name>
220N/A[\-endpointType\ <endpointType>\ ]
220N/ALocate 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.
220N/A.TP 3
220N/Alocateperorb
220N/A\-serverid\ <server\ id\ >\ |
220N/A\-applicationName\ <application\ name>
220N/A[\-orbid\ <ORB\ name>\ ]
220N/ALocate 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.
220N/A.TP 3
220N/Aorblist \-serverid\ <server\ id\ >\ |
220N/A\-applicationName\ <application\ name>
220N/ALists 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.
220N/A.TP 3
220N/Ashutdown \-serverid\ <server\ id\ >\ |
220N/A\-applicationName\ <application\ name>
220N/AShutdown 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.
220N/A.TP 3
220N/Astartup \-serverid\ <server\ id\ >\ |
220N/A\-applicationName\ <application\ name>
220N/AStartup 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.
220N/A.TP 3
220N/Ahelp
220N/AList all the commands available to the server through the server tool.
220N/A.TP 3
220N/Aquit
220N/AExit the server tool.
220N/A.LP
220N/A.SH "SEE ALSO"
220N/A.LP
220N/A
220N/A.LP
220N/Aorbd
220N/A.LP
220N/A
220N/A