CORBA 2.6.1 Programmer's Guide for Java

Display the Naming Service tree
Add a naming context
Rename a naming context or name
Remove a naming context or name
View an object reference
Save an object reference
An example of the Console view of the Naming Service is shown in Figure 5–3.
Figure 5.3. Naming Service Display
For more information about using the Console, see the NonStop CORBA 2.6.1 Administration Guide and the online help provided with the
Console.
Setting Up ns_browse to View the Naming Service
The ns_browse tool runs on the NonStop system, and it allows you to look at entries stored in the Naming Service database. You might use the
ns_browse tool when for some reason you do not want to use the Console, or when the Console is not available. The ns_browse tool for NonStop
CORBA is located in the
$NSD_ROOT/bin/unsupported directory.
The JORB Lite
ns_browse tool is a batch file contained in the bin folder in which JORB Lite is installed. Before running this tool, you must have a
correctly configured Java environment. For JORB Lite, the required Java environment is:
CLASSPATH must include the path to the standard Java JVM classes file, the jorblite.jar file
PATH must include the path to the Java implementation
The lite.dbm configuration file must have the following Naming Service setting: NS@name_service_settings RootNamingContextIORFile
ior-file-path
When NonStop CORBA is installed, the Naming Service writes the stringified IOR of the root naming context into the
$NSD_ROOT/urls/NameService file. This ASCII file must be copied to the computer where JORB Lite is installed and the full pathname of this file
must be specified in the
lite.dbm Naming Service setting.
For example, when the
NameService file is copied into the directory c:\jorblite\lib\NameService, the Naming Service setting in lite.dbm would
resemble the following:
NS@name_service_settings RootNamingContextIORFile c:\jorblite\lib\NameService
The ns_browse Tool Syntax
ns_browse [-ior stringified-NamingContext] operation