jdk/src/linux/doc/man/orbd.1
author alanb
Wed, 05 Jun 2013 13:57:16 +0100
changeset 17950 b2d5b298ec6e
parent 9573 c02ff5a7c67b
child 21743 3d979da7bdf0
permissions -rw-r--r--
8015880: GenerateBreakIteratorData build warning Reviewed-by: peytoia
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9573
c02ff5a7c67b 7043684: Update man pages for JDK 7 tools
bpatel
parents: 5865
diff changeset
     1
." Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
." This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
." under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
." published by the Free Software Foundation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
." This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
." FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
." version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
." accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
." You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
." 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
."
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2692
diff changeset
    18
." Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2692
diff changeset
    19
." or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2692
diff changeset
    20
." questions.
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    21
."
9573
c02ff5a7c67b 7043684: Update man pages for JDK 7 tools
bpatel
parents: 5865
diff changeset
    22
.TH orbd 1 "10 May 2011"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    25
.SH "Name"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
orbd \- The Object Request Broker Daemon
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
\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
    30
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    32
\f3See also:\fP 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    33
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    34
\f2Naming Service\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    35
.fi
9573
c02ff5a7c67b 7043684: Update man pages for JDK 7 tools
bpatel
parents: 5865
diff changeset
    36
http://download.oracle.com/javase/7/docs/technotes/guides/idl/jidlNaming.html
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
.SH "SYNOPSIS"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
orbd <\fP\f3options\fP\f3>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
.SH "DESCRIPTION"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
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
    53
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
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
    58
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
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
    61
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    65
To access ORBD's Server Manager, the server must be started using servertool(1), 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.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    68
When \f2orbd\fP starts up, it also starts a naming service. For more information on the naming service, link to 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    69
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    70
\f2Naming Service\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    71
.fi
9573
c02ff5a7c67b 7043684: Update man pages for JDK 7 tools
bpatel
parents: 5865
diff changeset
    72
http://download.oracle.com/javase/7/docs/technotes/guides/idl/jidlNaming.html.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
.SH "OPTIONS"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
Required Options
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
\-ORBInitialPort nameserverport 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
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
    83
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
OTHER OPTIONS
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
\-port port 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
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
    96
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
\-defaultdb directory 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
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
   103
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
\-serverPollingTime milliseconds 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
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
   110
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
\-serverStartupDelay milliseconds 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
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
   117
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
\-Joption 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   123
Pass \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. 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
.SH "Starting and Stopping the Naming Service"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   132
A Naming Service is a CORBA service that allows 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   133
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   134
\f2CORBA objects\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   135
.fi
9573
c02ff5a7c67b 7043684: Update man pages for JDK 7 tools
bpatel
parents: 5865
diff changeset
   136
http://download.oracle.com/javase/7/docs/technotes/guides/idl/jidlGlossary.html#CORBA%20object to be named by means of binding a name to an object reference. The 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   137
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   138
\f2name binding\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   139
.fi
9573
c02ff5a7c67b 7043684: Update man pages for JDK 7 tools
bpatel
parents: 5865
diff changeset
   140
http://download.oracle.com/javase/7/docs/technotes/guides/idl/jidlGlossary.html#name%20binding may be stored in the naming service, and a client may supply the name to obtain the desired object reference.
2
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
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
   144
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
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
   147
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
\ 
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
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
   153
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
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
   156
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
To start \f2orbd\fP from a UNIX command shell, enter:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
  orbd \-ORBInitialPort 1050&
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
From an MS\-DOS system prompt (Windows), enter:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
  start orbd \-ORBInitialPort 1050
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
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
   183
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
        Properties props = new Properties();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
        props.put("org.omg.CORBA.ORBInitialPort", "1050");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
        props.put("org.omg.CORBA.ORBInitialHost", "MyHost");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
        ORB orb = ORB.init(args, props);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
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
   201
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
     java HelloApplication \-ORBInitialPort 1050 \-ORBInitialHost MyHost
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
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
   213
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   215
For more information on the Naming Service included with ORBD, see 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   216
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   217
\f2Naming Service\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   218
.fi
9573
c02ff5a7c67b 7043684: Update man pages for JDK 7 tools
bpatel
parents: 5865
diff changeset
   219
http://download.oracle.com/javase/7/docs/technotes/guides/idl/jidlNaming.html.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
.SH "Server Manager"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   224
To access ORBD's Server Manager and run a persistent server, the server must be started using servertool(1), 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.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
Server Manager: an Example
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   230
Using the 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   231
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   232
\f2sample tutorial\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   233
.fi
9573
c02ff5a7c67b 7043684: Update man pages for JDK 7 tools
bpatel
parents: 5865
diff changeset
   234
http://download.oracle.com/javase/7/docs/technotes/guides/idl/jidlExample.html 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:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
Start \f2orbd\fP.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
To start \f2orbd\fP from a UNIX command shell, enter:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
\ 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
  orbd \-ORBInitialPort 1050 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
From an MS\-DOS system prompt (Windows), enter:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
  start orbd \-ORBInitialPort 1050
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
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
   268
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
Start the \f2servertool\fP:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
To start the Hello server, enter:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
  servertool \-ORBInitialPort 1050
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
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
   286
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
The \f2servertool\fP command line interface appears.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
.LP
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
Start the Hello server from the \f2servertool\fP prompt:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
  servertool  > register \-server HelloServer \-classpath . \-applicationName
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
                HelloServerApName
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
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
   309
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
Run the client application from another terminal window or prompt:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
\ 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
  java HelloClient \-ORBInitialPort 1050 \-ORBInitialHost localhost
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
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
   330
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
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
   333
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
\ 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
\ 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
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
   342
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
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
   345
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
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
   348
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
.SH "See Also"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
o
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   354
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   355
\f2Naming Service\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   356
.fi
9573
c02ff5a7c67b 7043684: Update man pages for JDK 7 tools
bpatel
parents: 5865
diff changeset
   357
http://download.oracle.com/javase/7/docs/technotes/guides/idl/jidlNaming.html
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
o
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   361
servertool(1) 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368