jdk/src/linux/doc/man/tnameserv.1
author michaelm
Thu, 13 Jan 2011 11:01:30 +0000
changeset 7980 3af394bb6f59
parent 5865 47da38a8c0f0
child 9573 c02ff5a7c67b
permissions -rw-r--r--
6896088: URLClassLoader.close() apparently not working for JAR URLs on Windows Reviewed-by: chegar
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5865
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
     1
." Copyright (c) 1999, 2010, 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.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
."
5865
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
    22
.TH tnameserv 1 "02 Jun 2010"
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
Java IDL: Transient Naming Service \- \f2tnameserv\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    29
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 orbd(1) or the 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
\f2Java IDL Naming Service Included with ORBD\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
http://java.sun.com/javase/6/docs/technotes/guides/idl/jidlNaming.html topic.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
Topics in this section include:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
Java\ IDL Transient Naming Service 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
Starting the Java\ IDL Transient Naming Service 
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
Stopping the 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
Sample Client: Adding Objects to the Namespace 
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
Sample Client: Browsing the Namespace 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
.RE
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
.SH "Java\ IDL Transient Naming Service"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
The 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
    61
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
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
    64
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
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
    67
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
.SH "Starting the Java\ IDL Transient Naming Service"
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
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
    72
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
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
    75
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
        tnameserv \-ORBInitialPort \fP\f4nameserverport\fP\f3&
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
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
    87
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
        tnameserv \-ORBInitialPort 1050&
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
From an MS\-DOS system prompt (Windows), enter:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
        start tnameserv \-ORBInitialPort 1050
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
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
   111
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
Running the server and client on different hosts
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
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
   117
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
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
   120
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
\f2The Hello World Example Using RMI\-IIOP\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
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
   124
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
\f2Java IDL: Running the Hello World Example on TWO Machines\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
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
   128
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
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
   131
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
Start \f2tnameserv\fP on the host \f2nameserverhost\fP, as follows: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
     tnameserv \-ORBInitialPort 1050
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
Start the server on the \f2serverhost\fP, as follows: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
     java Server \-ORBInitialPort 1050 \-ORBInitialHost nameserverhost
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
Start the client on the \f2clienthost\fP, as follows: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
     java Client \-ORBInitialPort 1050 \-ORBInitialHost nameserverhost
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
The \-J option
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
This command\-line option is available for use with \f2tnameserve\fP: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   175
.RS 3
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
\-Joption 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   178
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. 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   179
.RE
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   180
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
.SH "Stopping the Java\ IDL Transient Naming Service"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
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
   187
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
.SH "Sample Client: Adding Objects to the Namespace"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
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
   192
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
\fP\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
                  \fP\f4Initial\fP\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
               \fP\f4Naming Context\fP\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   202
                  /      \\ 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   204
                 /        \\ 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
              plans     \fP\f4Personal\fP\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   208
                         /   \\ 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   210
                        /     \\ 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
                   calendar  schedule\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
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
   219
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
import java.util.Properties;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
import org.omg.CORBA.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
import org.omg.CosNaming.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
public class NameClient
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
   public static void main(String args[])
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
   {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
      try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
.fi
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
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
   246
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
        Properties props = new Properties();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
        props.put("org.omg.CORBA.ORBInitialPort", "1050");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
        ORB orb = ORB.init(args, props);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
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
   262
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
        NamingContext ctx =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
NamingContextHelper.narrow(orb.resolve_initial_references("NameService"));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
        NamingContext objref = ctx;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
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
   278
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
        NameComponent nc1 = new NameComponent("plans", "text");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
        NameComponent[] name1 = {nc1};
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
        ctx.rebind(name1, objref);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
        System.out.println("plans rebind sucessful!");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
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
   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
        NameComponent nc2 = new NameComponent("Personal", "directory");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
        NameComponent[] name2 = {nc2};
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
        NamingContext ctx2 = ctx.bind_new_context(name2);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
        System.out.println("new naming context added..");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
.fi
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
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
   314
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
        NameComponent nc3 = new NameComponent("schedule", "text");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
        NameComponent[] name3 = {nc3};
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
        ctx2.rebind(name3, objref);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
        System.out.println("schedule rebind sucessful!");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
        NameComponent nc4 = new NameComponent("calender", "text");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
        NameComponent[] name4 = {nc4};
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
        ctx2.rebind(name4, objref);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
        System.out.println("calender rebind sucessful!");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
    } catch (Exception e) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
        e.printStackTrace(System.err);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
  }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
.fi
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
.SH "Sample Client: Browsing the Namespace"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
The following sample program illustrates how to browse the namespace.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
import java.util.Properties;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
import org.omg.CORBA.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
import org.omg.CosNaming.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
public class NameClientList
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
   public static void main(String args[])
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
   {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
      try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
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
   384
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
        Properties props = new Properties();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
        props.put("org.omg.CORBA.ORBInitialPort", "1050");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
        ORB orb = ORB.init(args, props);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
The following code obtains the intial naming context. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
        NamingContext nc =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
NamingContextHelper.narrow(orb.resolve_initial_references("NameService"));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
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
   418
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
        BindingListHolder bl = new BindingListHolder();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
        BindingIteratorHolder blIt= new BindingIteratorHolder();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
        nc.list(1000, bl, blIt);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
90ce3da70b43 Initial load
duke
parents:
diff changeset
   432
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
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
   434
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
        Binding bindings[] = bl.value;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   439
        if (bindings.length == 0) return;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   441
90ce3da70b43 Initial load
duke
parents:
diff changeset
   442
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   443
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   445
90ce3da70b43 Initial load
duke
parents:
diff changeset
   446
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   447
The remainder of the code loops through the bindings and prints the names out. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   448
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   449
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   450
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   451
        for (int i=0; i < bindings.length; i++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   453
90ce3da70b43 Initial load
duke
parents:
diff changeset
   454
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   455
            // get the object reference for each binding
90ce3da70b43 Initial load
duke
parents:
diff changeset
   456
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   457
            org.omg.CORBA.Object obj = nc.resolve(bindings[i].binding_name);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   458
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   459
            String objStr = orb.object_to_string(obj);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   460
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   461
            int lastIx = bindings[i].binding_name.length\-1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   462
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   463
90ce3da70b43 Initial load
duke
parents:
diff changeset
   464
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   465
            // check to see if this is a naming context
90ce3da70b43 Initial load
duke
parents:
diff changeset
   466
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   467
            if (bindings[i].binding_type == BindingType.ncontext) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   468
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   469
              System.out.println( "Context: " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   470
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   471
bindings[i].binding_name[lastIx].id);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   472
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   473
            } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   474
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   475
                System.out.println("Object: " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   476
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   477
bindings[i].binding_name[lastIx].id);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   478
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   479
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   480
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   481
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   482
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   483
90ce3da70b43 Initial load
duke
parents:
diff changeset
   484
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   485
       } catch (Exception e) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   486
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   487
        e.printStackTrace(System.err);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   488
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   489
       }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   490
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   491
   }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   492
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   493
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   494
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   495
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   496
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   497
90ce3da70b43 Initial load
duke
parents:
diff changeset
   498
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   499