Invoking the name space dump utility
It is often helpful to view a dump of the name space to understand why a naming operation is failing. One can invoke the name space dump utility from the command line or from a program. Examples of each option follow.
Invoking name space dump utility from a command line
Invoke the name space dump utility from the command line by entering the following command:
ORdumpNameSpace -host myhost.mycompany.com -port 901
dumpNameSpace -url corbaloc:iiop:myhost.mycompany.com:901There are several command line options to choose from. For detailed help, enter the following command:
dumpNameSpace -help
Invoking name space dump utility from a Java program
One can dump name spaces from a program with the com.ibm.websphere.naming.DumpNameSpace API. Refer to the WebSphere Application Server API documentation for details on the DumpNameSpace program interface.
The following example illustrates how to invoke the name space dump utility from a Java program:
{ ... import javax.naming.Context; import javax.naming.InitialContext; import com.ibm.websphere.naming.DumpNameSpace; ... java.io.PrintStream filePrintStream = ... Context ctx = new InitialContext(); ctx = (Context) ctx.lookup("cell/nodes/node1/servers/servername"); // Start context for dump DumpNameSpace dumpUtil = new DumpNameSpace(filePrintStream, DumpNameSpace.SHORT); dumpUtil.generateDump(ctx); ... }
Troubleshooting name space problems
dumpNameSpace tool
WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.