CORBA 2.3.7 Programmer's Guide for Java
public static Config_trace get_default();
public void open_trace_file();
public void set_trace_file_name(String pp_trace_file_name);
public static void trace(String pp_trace_data);
public void trace_data(String pp_trace_data);
}
Trace Method Descriptions
Two methods are used to create a trace message: trace() and trace_data(). One sets the trace filename:
set_trace_file_name(). Two others open open_trace_file() and close close_trace_file() the
trace file. And another gets the default trace object: get_default().
Of the two trace message creation methods, trace() traces the specified data to the default trace object. The
trace_data() method traces the specified data using the instance of the trace object.
When you open a trace file using the open_trace_file() method, any previously opened trace file is
automatically closed. The close_trace_file() method does not automatically close the trace file until the
current process exits. If the ref count goes to 0, the trace file is closed.
The set_trace_file_name() provides an option to specify a user-defined trace filename. This method allows
you to override the default trace file specified in the configuration database. To create a user-specified trace file, you
must call this method before making any calls to open_trace_file().
Using the showior tool
The $NSD_ROOT/bin/unsupported/showior tool can help you in troubleshooting applications. Use this tool to
help determine if a server is publishing the correct information about an object, for example, the right TCP address and
port number. You can also use this tool to determine if a client has the right profiles available, that is, profiles that
match the client's capabilities.
The showior tool traverses the profiles contained in the IOR file and displays the information associated with each
profile. If you need background information to interpret profile information, see Object References. By default,
showior sends the specified stringified IOR file to stdout. You can use the showior output to find problems in
your NonStop CORBA configurations and applications.
The showior tool works in both the NonStop CORBA environment and the JORB Lite environment. However,
before you can use showior, the environment must be correctly configured. For NonStop CORBA, the environment
is set up by executing the $NSD_ROOT/etc/env.sh script. For JORB Lite, the Java environment is set up by
executing the env.bat file. The showior tool is located in the bin directory of your JORB Lite installation.
The showior Tool Syntax
showior [-a | -o] IOR-filename
where
-a