jdk/src/solaris/doc/sun/man/man1/servertool.1
author duke
Sat, 01 Dec 2007 00:00:00 +0000
changeset 2 90ce3da70b43
child 2692 345bc8d65b19
permissions -rw-r--r--
Initial load
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
.'" t
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
." Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
." This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
." under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
." published by the Free Software Foundation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
." This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
." FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
." version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
." accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
." You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
." 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
." Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
." CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
." have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
." ` 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
.TH servertool 1 "05 Aug 2006"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
." Generated by html2roff
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
.SH NAME
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
servertool \- The Java(TM) IDL Server Tool
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
\f3servertool\fP provides a command\-line interface for application programmers to register, unregister, startup, and shutdown a persistent server. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
.SH "SYNOPSIS"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
servertool \-ORBInitialPort \fP\f4nameserverport\fP\f3 \fP\f3options\fP\f3 [ \fP\f3commands\fP\f3 ]
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
If 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.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
If you enter a command when starting \f2servertool\fP, the Java IDL Server Tool starts, runs the command, and exits.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
The \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.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
.SH "DESCRIPTION"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
The \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.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
.SH "OPTIONS"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
\-ORBInitialHost nameserverhost 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
Specifies 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. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
\-Joption 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
Pass \f2option\fP to the Java virtual machine, where \f2option\fP is one of the options described on the reference page for the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
\f2java a pplication launcher\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
http://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. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
.SH "COMMANDS"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
register \-server\ <server\ class\ name>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
\ \-classpath\ <classpath\ to\ server>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
[\ \-applicationName\ <application\ name>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
\-args\ <args\ to\ server>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
\-vmargs\ <flags\ to\ be\ passed\ to\ Java\ VM>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
\ ] 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
Register 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). 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
unregister
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
\-serverid\ <server\ id\ >\ |
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
\-applicationName\ <application\ name> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
Unregister 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). 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
getserverid
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
\-applicationName\ <application\ name> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
Return the server id that corresponds with an application. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
list 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
List information about all persistent servers registered with the ORBD. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
listappnames 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
List the application names for all servers currently registered with the ORBD. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
listactive 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
List information about all persistent servers that have been launched by the ORBD and are currently running. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
locate \-serverid\ <server\ id\ >\ |
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
\-applicationName\ <application\ name>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
[\-endpointType\ <endpointType>\ ] 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
Locate 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. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
locateperorb
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
\-serverid\ <server\ id\ >\ |
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
\-applicationName\ <application\ name>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
[\-orbid\ <ORB\ name>\ ] 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
Locate 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. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
orblist \-serverid\ <server\ id\ >\ |
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
\-applicationName\ <application\ name> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
Lists 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. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
shutdown \-serverid\ <server\ id\ >\ |
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
\-applicationName\ <application\ name> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
Shutdown 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. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
startup \-serverid\ <server\ id\ >\ |
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
\-applicationName\ <application\ name> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
Startup 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. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
help 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
List all the commands available to the server through the server tool. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
quit 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
Exit the server tool. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
.SH "SEE ALSO"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
orbd 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143