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