In this example, the output from either the command line or code invocation would be:
Getting the initial context Getting the starting context ========================================================== Name Space Dump Provider URL: corbaloc:iiop:localhost:2809 Context factory: com.ibm.websphere.naming.WsnInitialContextFactory Requested root context: cell Starting context: (top)=SERVER_default Formatting rules: jndi Time of dump: Sun Nov 10 23:39:18 CST 2002 ========================================================== ========================================================== Beginning of Name Space Dump ========================================================== 1 (top) 2 (top)/cell javax.naming.Context 2 Linked to context SERVER_default 3 (top)/cells javax.naming.Context 2 (top)/persistant javax.naming.Context 5 (top)/persistent/cell javax.naming.Context 5 Linked to context: SERVER_default 6 (top)/domain javax.naming.Context 6 Linked to context: SERVER_default 7 (top)/legacyRoot javax.naming.Context 7 Linked to context: SERVER_default/persistent 8 (top)/nodes javax.naming.Context 9 (top)/nodes/SERVER_default javax.naming.Context 10 (top)/nodes/SERVER_default/nodename java.lang.String 11 (top)/nodes/SERVER_default/persistent javax.naming.Context 12 (top)/nodes/SERVER_default/domain javax.naming.Context 12 Linked to context: SERVER_default 13 (top)/nodes/SERVER_default/servers javax.naming.Context 14 (top)/nodes/SERVER_default/servers/server1 javax.naming.Context 15 (top)/nodes/SERVER_default/servers/server1/distributedmap 15 com.ibm.websphere.cache.DistributedMap 16 (top)/nodes/SERVER_default/servers/server1/DefaultDatasource 16 Default Datasource 17 (top)/nodes/SERVER_default/servers/server1/ejb javax.naming.Context 18 (top)/nodes/SERVER_default/servers/server1/thisNode 18 javax.naming.Context 18 Linked to context: SERVER_default/nodes/SERVER_default 19 (top)/nodes/SERVER_default/servers/server1/jta javax.naming.Context 20 (top)/nodes/SERVER_default/servers/server1/jta/usertransaction 20 java.lang.Object 21 (top)/nodes/SERVER_default/servers/server1/cell javax.naming.Context 21 Linked to context: SERVER_default 22 (top)/nodes/SERVER_default/servers/server1/servername 22 java.lang.String 23 (top)/nodes/SERVER_default/servers/server1/eis javax.naming.Context 24 (top)/nodes/SERVER_default/servers/server1/eis/DefaultDatasource_CMP 24 Default_CF 25 (top)/nodes/SERVER_default/servers/server1/TransactionFactory 25 com.ibm.ejs.jts.jts.ControlSet$LocalFactory 26 (top)/nodes/SERVER_default/cell javax.naming.Context 26 Linked to context: SERVER_default 27 (top)/nodes/SERVER_default/node javax.naming.Context 27 Linked to context: SERVER_default/nodes/SERVER_default 28 (top)/cellname java.lang.String 29 (top)/clusters javax.naming.Context ========================================================== End of Name Space Dump ==========================================================