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:appsvr1.rchland.ibm.com:3500 Context factory: com.ibm.websphere.naming.WsnInitialContextFactory Requested root context: cell Starting context: (top)=APPSVR1_myInst Formatting rules: jndi Time of dump: Mon Dec 01 15:18:15 UTC 2003 ============================================================================== ============================================================================== Beginning of Name Space Dump ============================================================================== 1 (top) 2 (top)/legacyRoot javax.naming.Context 2 Linked to context: APPSVR1_myInst/persistent 3 (top)/cell javax.naming.Context 3 Linked to context: APPSVR1_myInst 4 (top)/domain javax.naming.Context 4 Linked to context: APPSVR1_myInst 5 (top)/cellname java.lang.String 6 (top)/cells javax.naming.Context 7 (top)/persistent javax.naming.Context 8 (top)/persistent/cell javax.naming.Context 8 Linked to context: APPSVR1_myInst 9 (top)/clusters javax.naming.Context 10 (top)/nodes javax.naming.Context 11 (top)/nodes/APPSVR1_myInst javax.naming.Context 12 (top)/nodes/APPSVR1_myInst/cell javax.naming.Context 12 Linked to context: APPSVR1_myInst 13 (top)/nodes/APPSVR1_myInst/nodename java.lang.String 14 (top)/nodes/APPSVR1_myInst/persistent javax.naming.Context 15 (top)/nodes/APPSVR1_myInst/servers javax.naming.Context 16 (top)/nodes/APPSVR1_myInst/servers/myInst javax.naming.Context 17 (top)/nodes/APPSVR1_myInst/servers/myInst/eis javax.naming.Context 18 (top)/nodes/APPSVR1_myInst/servers/myInst/eis/DefaultDatasource_CMP 18 Default_CF 19 (top)/nodes/APPSVR1_myInst/servers/myInst/thisNode javax.naming.Context 19 Linked to context: APPSVR1_myInst/nodes/APPSVR1_myInst 20 (top)/nodes/APPSVR1_myInst/servers/myInst/jta javax.naming.Context 21 (top)/nodes/APPSVR1_myInst/servers/myInst/jta/usertransaction 21 java.lang.Object 22 (top)/nodes/APPSVR1_myInst/servers/myInst/TransactionFactory 22 com.ibm.ws.Transaction.JTS.TransactionFactoryImpl 23 (top)/nodes/APPSVR1_myInst/servers/myInst/DefaultDatasource 23 Default Datasource 24 (top)/nodes/APPSVR1_myInst/servers/myInst/servername 24 java.lang.String 25 (top)/nodes/APPSVR1_myInst/servers/myInst/cell javax.naming.Context 25 Linked to context: APPSVR1_myInst 26 (top)/nodes/APPSVR1_myInst/domain javax.naming.Context 26 Linked to context: APPSVR1_myInst 27 (top)/nodes/APPSVR1_myInst/node javax.naming.Context 27 Linked to context: APPSVR1_myInst/nodes/APPSVR1_myInst ============================================================================== End of Name Space Dump ==============================================================================