CORBA 2.6.1 Programmer's Guide for Java
A Java applet uses the following signature for the ORB initialize call:
public static ORB init(Applet app, Properties props)
Java Applet Configuration
JORB Lite applets and applications use different mechanisms to obtain the NonStop CORBA framework configuration information. With JORB
Lite, applications obtain configuration information from the configuration file specified by the application parameter
ORBlitedbm. However, Java
applets have a restriction in that they cannot read data from local disk files. Because of this restriction, JORB Lite applets must use applet
parameters to gain the configuration information.
JORB Lite applets retrieve the NonStop CORBA framework configuration information when they make the following object call:
org.omg.CORBA.ORB.init(Applet applet, Properties props)
When used with the applet signature, the ORB.init() method inspects specific HTML PARAM tags specified in the HTML APPLET tag. Through
these
PARAM tags the applet obtains the ORB configuration.
Specifically, the Java applet
ORB.init() call uses the Java applet parameters shown in Table 12–1.
Table 12.1. JORB Lite Applet Configuration Parameters
Name Value
NSDOM_CFG_NS_URL naming-service-root-nc-ior-url
NSDOM_CFG_PROFILE profile-attributes-string
NSDOM_CFG_TRACE_GIOP_FW
true or false
NSDOM_CFG_TRACE_ORB
true or false
NSDOM_CFG_TRACE_POA
true or false
NSDOM_CFG_TRACE_PROXY
true or false
NSDOM_CFG_TRACE_PROXY_DETAIL
true or false
NSDOM_CFG_TRACE_SOCKEH
true or false
NSDOM_CFG_TRACE_SOCKEH_DETAIL
true or false
ORBprofile orb-profile
These parameters have the following usage:
NSDOM_CFG_NS_URL
This parameter specifies that web-page relative URL for the Naming Service root naming context IOR file. This is the NonStop CORBA
framework file
jorblite-dir urls\NameService or a copy of that file. See Resolving the Initial Naming Service Reference below for
details.
NSDOM_CFG_PROFILE
This parameter specifies the profile attributes string. The value of the string is a list of profile attributes where each specified attribute
name-value pair is separated by a comma. The attribute names and values are exactly the same as those available through
cfgmgt.
Note that, When you specify the
host_name attribute, you should also specify the value for the localhost attribute.
NSDOM_CFG_TRACE_GIOP_FW
This parameter specifies the state of GIOP_FW tracing. When enabled, the output goes to stdout by default.
NSDOM_CFG_TRACE_ORB
This parameter specifies the state of ORB tracing. When enabled, the output goes to stdout by default.
NSDOM_CFG_TRACE_POA
This parameter specifies the state of POA tracing. When enabled, the output goes to stdout by default.
NSDOM_CFG_TRACE_PROXY
This parameter specifies the state of PROXY tracing. When enabled, the output goes to stdout by default.
NSDOM_CFG_TRACE_PROXY_DETAIL
This parameter specifies the state of PROXY DETAIL tracing. When enabled, the output goes to stdout by default.
NSDOM_CFG_TRACE_SOCKEH
This parameter specifies the state of SOCKEH tracing. When enabled, the output goes to stdout by default.
NSDOM_CFG_TRACE_SOCKEH_DETAIL
This parameter specifies the state of SOCKEH DETAIL tracing. When 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"