CORBA 2.3.3 Programmer's Guide for Java

(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
information, the call can resolve the root naming context object reference.
Because an applet cannot read a file to look up configuration information, JORB Lite applets must use HTML
PARAMS to resolve the location of the Naming Service.
Specifying the Root Naming Context IOR Location
A JORB Lite applet uses one of the two following methods to obtain the stringified root naming context object
reference:
If you specify a URL location using the NSDOM_CFG_NS_URL PARAM tag, the ORB refers to the
stringified root naming context IOR at the following URL:
Applet's document base URL/naming-service-root-nc-url
If you do not specify the NSDOM_CFG_NS_URL PARAM tag, the ORB reads the contents of this URL:
Applet's document base URL/NameService
Note
Both methods refer to the HTTP server that hosts the applet's web page. Therefore, the Naming Service's root
naming context IOR must be in a location relative to the web-page host.
As an example, suppose that the web page that hosts the applet is
http://jorb.tandem.com:8080/test/test.html and that you specified the following URL by
using the NSDOM_CFG_NS_URL PARAM tag:
jorblite/NameService
In this case, the ORB uses the following URL to obtain the stringified IOR:
http://jorb.tandem.com:8080/test/jorblite/NameService
Instead, suppose the same site hosts a JORB Lite applet that does not make use of the NSDOM_CFG_NS_URL
tag. In this case, the ORB obtains the stringified IOR from the following URL:
http://jorb.tandem.com:8080/NameService
Prev Up Next
Chapter 10. Porting CORBA
Applications to NonStop CORBA
Home
Appendix A. Architectural Walkthrough