CORBA 2.6 Programmer's Guide for Java

This parameter specifies the state of SOCKEH DETAIL tracing. If enabled, the output goes to stdout
by default.
ORBprofile
This parameter specifies the ORB profile name.
Note:
You must specify both ORBprofile and NSDOM_CFG_PROFILE to specify an ORB profile.
The sample Applet HTML code below shows the specification for a JORB Lite applet:
<APPLET codebase="."
code="AppletExample.class"
width="400"
height="300"
align="BOTTOM">
<PARAM name="NSDOM_CFG_NS_URL"
value="jorb/NameService">
<PARAM name="ORBprofile"
value="tcp_server">
<PARAM name="NSDOM_CFG_PROFILE"
value="tcp_server true, host_name localhost, port_number 0">
<PARAM NAME="NSDOM_CFG_TRACE_PROXY"
value"true">
</APPLET>
In this example, the main class file is AppletExample.class. The Naming Service root naming context
URL can be found at web-page/jorb/NameService.
The ORBprofile parameter shows that the ORB uses TCP/IP as its communication protocol (it does this by
using the tcp_server specification), and the NSDOM_CFG_PROFILE attributes are:
tcp_server true
host_name localhost
port_number 0
The example also sets the PROXY tracing, whose output will appear on stdout.
Resolving the Initial Naming Service Reference
Another difference between JORB Lite applets and applications is the way they obtain the initial reference to
the Naming Service. Both applications and applets use the following call:
ORB.resolve_initial_references("NameService")
The resolve_initial_references() call obtains the stringified root naming context IOR from the
NameService file. The stringified object is then transformed into a root naming context object reference
(which references the location of the Naming Service) by using a call to
org.omg.CORBA.ORB.string_to_object().
For applications, resolve_initial_references() can find the stringified root naming context IOR by
directly referencing the NameService configuration file. In this file, the IOR is stored in the entity
NS@name_service_settings and its associated key, RootNamingContextIORFile. Using this