jdk/src/linux/doc/man/tnameserv.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
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
." Copyright 2000-2006 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
." This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
." under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
." published by the Free Software Foundation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
." This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
." FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
." version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
." accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
." You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
." 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
." Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
." CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
." have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
." `
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
.TH tnameserv 1 "06 Aug 2006"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
." Generated by html2man
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
.SH NAME
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
Java IDL: Transient Naming Service \- \f2tnameserv\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
This document discusses using the Java IDL Transient Naming Service, \f2tnameserv\fP. Java IDL also includes the Object Request Broker Daemon (ORBD). ORBD is a daemon process containing a Bootstrap Service, a Transient Naming Service, a \f3Persistent\fP Naming Service, and a Server Manager. The Java IDL tutorials all use ORBD, however, you can substitute \f2tnameserv\fP for \f2orbd\fP in any of the examples that use a Transient Naming Service. For documentation on the \f2orbd\fP tool, link to its man page or the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
\f2Java IDL Naming Service Included with ORBD\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
http://java.sun.com/javase/6/docs/technotes/guides/idl/jidlNaming.html topic.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
Topics in this section include:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
Java\ IDL Transient Naming Service 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
Starting the Java\ IDL Transient Naming Service 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
Stopping the Java\ IDL Transient Naming Service 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
Sample Client: Adding Objects to the Namespace 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
Sample Client: Browsing the Namespace 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
.SH "Java\ IDL Transient Naming Service"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
The CORBA COS (Common Object Services) Naming Service provides a tree\-like directory for object references much like a filesystem provides a directory structure for files. The Transient Naming Service provided with Java IDL, \f2tnameserv\fP, is a simple implementation of the COS Naming Service specification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
Object references are stored in the namespace by name and each object reference\-name pair is called a name \f2binding\fP. Name bindings may be organized under \f2naming contexts\fP. Naming contexts are themselves name bindings and serve the same organizational function as a file system subdirectory. All bindings are stored under the \f2initial naming context\fP. The initial naming context is the only persistent binding in the namespace; the rest of the namespace is lost if the Java IDL naming service process halts and restarts.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
For an applet or application to use COS naming, its ORB must know the port of a host running a naming service or have access to a stringified initial naming context for that naming service. The naming service can either be the Java\ IDL naming service or another COS\-compliant naming service.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
.SH "Starting the Java\ IDL Transient Naming Service"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
You must start the Java\ IDL naming service before an application or applet that uses its naming service. Installation of the Java\ IDL product creates a script (Solaris: \f2tnameserv\fP) or executable file (Windows NT: \f2tnameserv.exe\fP) that starts the Java\ IDL naming service. Start the naming service so it runs in the background.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
If you do not specify otherwise, the Java\ IDL naming service listens on port 900 for the bootstrap protocol used to implement the ORB \f2resolve_initial_references()\fP and \f2list_initial_references()\fP methods, as follows:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
        tnameserv \-ORBInitialPort \fP\f4nameserverport\fP\f3&
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
.fi
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
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
If you do not specify the name server port, port 900 is used by default. When running 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. To specify a different port, for example, 1050, and to run the naming service in the background, from a UNIX command shell, enter:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
        tnameserv \-ORBInitialPort 1050&
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
From an MS\-DOS system prompt (Windows), enter:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
        start tnameserv \-ORBInitialPort 1050
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
.fi
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
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
Clients of the name server must be made aware of the new port number. Do this by setting the \f2org.omg.CORBA.ORBInitialPort\fP property to the new port number when creating the ORB object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
Running the server and client on different hosts
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
In most of the Java IDL and RMI\-IIOP tutorials, the Naming Service, Server, and Client are all running on the development machine. In real world deployment, it is likely that the client and server will run on different host machines than the Naming Service.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
For the client and server to find the Naming Service, they must be made aware of the port number and host on which the naming service is running. Do this by setting the \f2org.omg.CORBA.ORBInitialPort\fP and \f2org.omg.CORBA.ORBInitialHost\fP properties in the client and server files to the machine name and port number on which the Naming Service is running. An example of this is shown in 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
\f2The Hello World Example Using RMI\-IIOP\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
http://java.sun.com/javase/6/docs/technotes/guides/rmi\-iiop/rmiiiopexample.html. You could also use the command line options \f2\-ORBInitialPort\fP \f2nameserverport#\fP and \f2\-ORBInitialHost\fP \f2nameserverhostname\fP to tell the client and server where to find the Naming Service. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
\f2Java IDL: Running the Hello World Example on TWO Machines\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
http://java.sun.com/javase/6/docs/technotes/guides/idl/tutorial/jidl2machines.html shows one way of doing this using the command line option.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
For example, suppose the Transient Naming Service, \f2tnameserv\fP is running on port 1050 on host \f2nameserverhost\fP. The client is running on host \f2clienthost\fP and the server is running on host \f2serverhost\fP.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
Start \f2tnameserv\fP on the host \f2nameserverhost\fP, as follows: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
     tnameserv \-ORBInitialPort 1050
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
Start the server on the \f2serverhost\fP, as follows: 
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
     java Server \-ORBInitialPort 1050 \-ORBInitialHost nameserverhost
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
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
Start the client on the \f2clienthost\fP, as follows: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
     java Client \-ORBInitialPort 1050 \-ORBInitialHost nameserverhost
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
The \-J option
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
This command\-line option is available for use with \f2tnameserve\fP: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
.RS 3
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
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
\-Joption 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
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
   184
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
\f2java application launcher\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
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
   188
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
.SH "Stopping the Java\ IDL Transient Naming Service"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
To stop the Java\ IDL naming service, use the relevant operating system command, such as \f2kill\fP for a Unix process, or \f2Ctrl\-C\fP for a Windows process. The naming service will continue to wait for invocations until it is explicitly shutdown. Note that names registered with the Java\ IDL naming service disappear when the service is terminated.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
.SH "Sample Client: Adding Objects to the Namespace"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
The following sample program illustrates how to add names to the namespace. It is a self\-contained Transient Naming Service client that creates the following simple tree.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
\fP\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
                  \fP\f4Initial\fP\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
               \fP\f4Naming Context\fP\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
                  /      \\
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
                 /        \\
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
              plans     \fP\f4Personal\fP\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
                         /   \\
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
                        /     \\
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
                   calendar  schedule\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
In this example, \f3plans\fP is an object reference and \f3Personal\fP is a naming context that contains two object references: \f3calendar\fP and \f3schedule\fP.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
import java.util.Properties;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
import org.omg.CORBA.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
import org.omg.CosNaming.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
public class NameClient
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
   public static void main(String args[])
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
   {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
      try {
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
In the above section, Starting the Java IDL Transient Naming Service, the nameserver was started on port 1050. The following code ensures that the client program is aware of this port number. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
        Properties props = new Properties();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
        props.put("org.omg.CORBA.ORBInitialPort", "1050");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
        ORB orb = ORB.init(args, props);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
This code obtains the initial naming context and assigns it to \f3ctx\fP. The second line copies \f3ctx\fP into a dummy object reference \f3objref\fP that we'll attach to various names and add into the namespace. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
        NamingContext ctx =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
NamingContextHelper.narrow(orb.resolve_initial_references("NameService"));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
        NamingContext objref = ctx;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
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
This code creates a name "plans" of type "text" and binds it to our dummy object reference. "plans" is then added under the initial naming context using \f2rebind\fP. The \f2rebind\fP method allows us to run this program over and over again without getting the exceptions we'd get from using \f2bind\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
        NameComponent nc1 = new NameComponent("plans", "text");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
        NameComponent[] name1 = {nc1};
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
        ctx.rebind(name1, objref);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
        System.out.println("plans rebind sucessful!");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
This code creates a naming context called "Personal" of type "directory". The resulting object reference, \f3ctx2\fP, is bound to the name and added under the initial naming context. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
        NameComponent nc2 = new NameComponent("Personal", "directory");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
        NameComponent[] name2 = {nc2};
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
        NamingContext ctx2 = ctx.bind_new_context(name2);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
        System.out.println("new naming context added..");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
The remainder of the code binds the dummy object reference using the names "schedule" and "calendar" under the "Personal" naming context (\f3ctx2\fP). 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
        NameComponent nc3 = new NameComponent("schedule", "text");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
        NameComponent[] name3 = {nc3};
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
        ctx2.rebind(name3, objref);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
        System.out.println("schedule rebind sucessful!");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
        NameComponent nc4 = new NameComponent("calender", "text");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
        NameComponent[] name4 = {nc4};
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
        ctx2.rebind(name4, objref);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
        System.out.println("calender rebind sucessful!");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
    } catch (Exception e) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
        e.printStackTrace(System.err);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
  }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
.SH "Sample Client: Browsing the Namespace"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
The following sample program illustrates how to browse the namespace.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
import java.util.Properties;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
import org.omg.CORBA.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
import org.omg.CosNaming.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
public class NameClientList
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
   public static void main(String args[])
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
   {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
      try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
In the above section, Starting the Java IDL Transient Naming Service, the nameserver was started on port 1050. The following code ensures that the client program is aware of this port number. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
        Properties props = new Properties();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
        props.put("org.omg.CORBA.ORBInitialPort", "1050");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
        ORB orb = ORB.init(args, props);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
The following code obtains the intial naming context. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
        NamingContext nc =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
NamingContextHelper.narrow(orb.resolve_initial_references("NameService"));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
The \f2list\fP method lists the bindings in the naming context. In this case, up to 1000 bindings from the initial naming context will be returned in the BindingListHolder; any remaining bindings are returned in the BindingIteratorHolder. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
        BindingListHolder bl = new BindingListHolder();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
        BindingIteratorHolder blIt= new BindingIteratorHolder();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   432
        nc.list(1000, bl, blIt);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   434
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
90ce3da70b43 Initial load
duke
parents:
diff changeset
   439
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
This code gets the array of bindings out of the returned BindingListHolder. If there are no bindings, the program ends. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   441
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   442
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   443
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
        Binding bindings[] = bl.value;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   445
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   446
        if (bindings.length == 0) return;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   447
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   448
90ce3da70b43 Initial load
duke
parents:
diff changeset
   449
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   450
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   451
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
90ce3da70b43 Initial load
duke
parents:
diff changeset
   453
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   454
The remainder of the code loops through the bindings and prints the names out. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   455
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   456
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   457
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   458
        for (int i=0; i < bindings.length; i++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   459
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   460
90ce3da70b43 Initial load
duke
parents:
diff changeset
   461
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   462
            // get the object reference for each binding
90ce3da70b43 Initial load
duke
parents:
diff changeset
   463
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   464
            org.omg.CORBA.Object obj = nc.resolve(bindings[i].binding_name);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   465
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   466
            String objStr = orb.object_to_string(obj);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   467
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   468
            int lastIx = bindings[i].binding_name.length\-1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   469
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   470
90ce3da70b43 Initial load
duke
parents:
diff changeset
   471
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   472
            // check to see if this is a naming context
90ce3da70b43 Initial load
duke
parents:
diff changeset
   473
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   474
            if (bindings[i].binding_type == BindingType.ncontext) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   475
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   476
              System.out.println( "Context: " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   477
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   478
bindings[i].binding_name[lastIx].id);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   479
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   480
            } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   481
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   482
                System.out.println("Object: " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   483
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   484
bindings[i].binding_name[lastIx].id);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   485
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   486
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   487
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   488
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   489
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   490
90ce3da70b43 Initial load
duke
parents:
diff changeset
   491
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   492
       } catch (Exception e) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   493
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   494
        e.printStackTrace(System.err);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   495
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   496
       }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   497
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   498
   }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   499
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   500
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   501
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   502
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   503
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   504
90ce3da70b43 Initial load
duke
parents:
diff changeset
   505
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   506
90ce3da70b43 Initial load
duke
parents:
diff changeset
   507
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   508