jdk/src/solaris/doc/sun/man/man1/orbd.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 orbd 1 "07 Aug 2006"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
." Generated by html2man
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
orbd \- The Object Request Broker Daemon
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
\f3orbd\fP is used to enable clients to transparently locate and invoke persistent objects on servers in the CORBA environment.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
\f3See also:\fP \f2Naming Service\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
.SH "SYNOPSIS"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
orbd <\fP\f3options\fP\f3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
.SH "DESCRIPTION"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
The Server Manager included with the \f3orbd\fP tool is used to enable clients to transparently locate and invoke persistent objects on servers in the CORBA environment. The persistent servers, while publishing the persistent object references in the Naming Service, include the port number of the ORBD in the object reference instead of the port number of the Server. The inclusion of an ORBD port number in the object reference for persistent object references has the following advantages:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
The object reference in the Naming Service remains independent of the server life cycle. For example, the object reference could be published by the server in the Naming Service when it is first installed, and then, independent of how many times the server is started or shutdown, the ORBD will always return the correct object reference to the invoking client. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
The client needs to lookup the object reference in the Naming Service only once, and can keep re\-using this reference independent of the changes introduced due to server life cycle. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
To access ORBD's Server Manager, the server must be started using \f2servertool\fP, which is a command\-line interface for application programmers to register, unregister, startup, and shutdown a persistent server. For more information on the Server Manager, see the section in this document titled \f2Server Manager\fP.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
When \f2orbd\fP starts up, it also starts a naming service. For more information on the naming service, link to \f2Naming Service\fP.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
.SH "OPTIONS"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
Required Options
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
\-ORBInitialPort nameserverport 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
Specifies the port on which the name server should be started. Once started, \f2orbd\fP will listen for incoming requests on this port. Note that 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. (required) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
OTHER OPTIONS
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
\-port port 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
Specifies the activation port where ORBD should be started, and where ORBD will be accepting requests for persistent objects. The default value for this port is 1049. This port number is added to the port field of the persistent Interoperable Object References (IOR). (optional) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
\-defaultdb directory 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
Specifies the base where the ORBD persistent storage directory \f2orb.db\fP is created. If this option is not specified, the default value is "./orb.db". (optional) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
\-serverPollingTime milliseconds 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
Specifies how often ORBD checks for the health of persistent servers registered via \f2servertool\fP. The default value is 1,000 ms. The value specified for \f2milliseconds\fP must be a valid positive integer. (optional) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
\-serverStartupDelay milliseconds 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
Specifies how long ORBD waits before sending a location forward exception after a persistent server that is registered via \f2servertool\fP is restarted. The default value is 1,000 ms. The value specified for \f2milliseconds\fP must be a valid positive integer. (optional) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
\-Joption 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
Pass \f2option\fP to the Java virtual machine, where \f2option\fP is one of the options described on the reference page for the java application launcher. 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
   126
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
.SH "Starting and Stopping the Naming Service"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
A Naming Service is a CORBA service that allows CORBA objects to be named by means of binding a name to an object reference. The name binding may be stored in the naming service, and a client may supply the name to obtain the desired object reference.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
Prior to running a client or a server, you will start ORBD. ORBD includes a persistent Naming Service and a transient Naming Service, both of which are an implementation of the COS Naming Service.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
The \f4Persistent\fP\f3 Naming Service\fP provides persistence for naming contexts. This means that this information is persistent across service shutdowns and startups, and is recoverable in the event of a service failure. If ORBD is restarted, the Persistent Naming Service will restore the naming context graph, so that the binding of all clients' and servers' names remains intact (persistent).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
\ 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
For backward compatibility, \f2tnameserv\fP, a \f4Transient\fP\f3 Naming Service\fP shipped with older versions of the JDK, is also included in this release of J2SE. A transient naming service retains naming contexts as long as it is running. If there is a service interruption, the naming context graph is lost.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
The \f2\-ORBInitialPort\fP argument is a required command\-line argument for \f2orbd\fP, and is used to set the port number on which the Naming Service will run. The following instructions assume you can use port 1050 for the Java\ IDL Object Request Broker Daemon. 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. You can substitute a different port if necessary.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
To start \f2orbd\fP from a UNIX command shell, enter:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
  orbd \-ORBInitialPort 1050&
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
From an MS\-DOS system prompt (Windows), enter:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
  start orbd \-ORBInitialPort 1050
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
Now that ORBD is running, you can run your server and client applications. When running the client and server applications, they must be made aware of the port number (and machine name, if applicable) where the Naming Service is running. One way to do this is to add the following code to your application:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
        Properties props = new Properties();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
        props.put("org.omg.CORBA.ORBInitialPort", "1050");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
        props.put("org.omg.CORBA.ORBInitialHost", "MyHost");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
        ORB orb = ORB.init(args, props);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
In this example, the Naming Service is running on port 1050 on host "MyHost". Another way is to specify the port number and/or machine name when running the server or client application from the command line. For example, you would start your "HelloApplication" with the following command line:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
     java HelloApplication \-ORBInitialPort 1050 \-ORBInitialHost MyHost
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
To stop the naming service, use the relevant operating system command, such as \f2pkill orbd\fP on Solaris, or \f2Ctrl+C\fP in the DOS window in which \f2orbd\fP is running. Note that names registered with the naming service may disappear when the service is terminated if the naming service is transient. The Java IDL naming service will run until it is explicitly stopped.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
For more information on the Naming Service included with ORBD, see \f2Naming Service\fP.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
.SH "Server Manager"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
To access ORBD's Server Manager and run a persistent server, the server must be started using \f2servertool\fP, which is a command\-line interface for application programmers to register, unregister, startup, and shutdown a persistent server. When a server is started using \f2servertool\fP, it must be started on the same host and port on which \f2orbd\fP is executing. If the server is run on a different port, the information stored in the database for local contexts will be invalid and the service will not work properly.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
Server Manager: an Example
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
Using the sample tutorial for our demonstration, you would run the \f2idlj\fP compiler and \f2javac\fP compiler as shown in the tutorial. To run the Server Manager, follow these steps for running the application:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
Start \f2orbd\fP.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
To start \f2orbd\fP from a UNIX command shell, enter:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
\ 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
  orbd \-ORBInitialPort 1050 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
From an MS\-DOS system prompt (Windows), enter:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
  start orbd \-ORBInitialPort 1050
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
Note that \f21050\fP is the port on which you want the name server to run. \f2\-ORBInitialPort\fP is a required command\-line argument. 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.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
Start the \f2servertool\fP:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
To start the Hello server, enter:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
  servertool \-ORBInitialPort 1050
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
Make sure the name server (\f2orbd\fP) port is the same as in the previous step, for example, \f2\-ORBInitialPort 1050\fP. The \f2servertool\fP must be started on the same port as the name server.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
The \f2servertool\fP command line interface appears.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
Start the Hello server from the \f2servertool\fP prompt:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
  servertool  > register \-server HelloServer \-classpath . \-applicationName
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
                HelloServerApName
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
The \f2servertool\fP registers the server, assigns it the name of "HelloServerApName", and displays its server id, along with a listing of all registered servers.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
Run the client application from another terminal window or prompt:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
\ 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
  java HelloClient \-ORBInitialPort 1050 \-ORBInitialHost localhost
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
For this example, you can omit \f2\-ORBInitialHost localhost\fP since the name server is running on the same host as the Hello client. If the name server is running on a different host, use \f2\-ORBInitialHost\fP \f2nameserverhost\fP to specify the host on which the IDL name server is running.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
Specify the name server (\f2orbd\fP) port as done in the previous step, for example, \f2\-ORBInitialPort 1050\fP.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
\ 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
\ 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
When you have finished experimenting with the Server Manager, be sure to shut down or kill the name server (\f2orbd\fP) and \f2servertool\fP.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
To shut down \f2orbd\fP from a DOS prompt, select the window that is running the server and enter \f2Ctrl+C\fP to shut it down. To shut down \f2orbd\fPfrom a Unix shell, find the process, and kill it. The server will continue to wait for invocations until it is explicitly stopped.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
To shut down the \f2servertool\fP, type \f2quit\fP and press the \f2Enter\fP key on the keyboard.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
.SH "See Also"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
Naming Service
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
servertool 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353