Name space dump utility for java:, local: and server name spaces

 

+

Search Tips   |   Advanced Search

 

Sometimes it is helpful to dump the java: name space for a J2EE application. You cannot use the dumpNameSpace command line utility for this purpose because the application's java: name space is accessible only by that J2EE application. From the WAS scripting tool, you can invoke a NameServer MBean to dump the java: name space for any J2EE application running in that same server process.

There is another name space local to server process which you cannot dump with the dumpNameSpace command line utility. This name space has the URL scheme of local: and is used by the container to bind objects locally instead of through the name server. The local: name space contains references to enterprise beans with local interfaces. There is only one local: name space in a server process. You can dump the local: name space by invoking the NameServer MBean associated with that server process.

 

Name space dump options

Name space dump options are specified in the MBean invocation as a parameter in character string format. The option descriptions follow.

-startAt some/subcontext/in/the/tree

Indicates the path from the name space root context to the top level context where the dump should begin. The utility recursively dumps subcontexts below this point. It defaults to an empty string, that is, the root context.

-report {short | long}

Option Description
short The default. Dumps the binding name and bound object type. This output is also provided by JNDI Context.list().
long Dumps the binding name, bound object type, local object type, and string representation of the local object (that is, the IORs, string values, and other values that are printed).

-root {tree | host | legacy | cell | node | server | default}

Specify the root context of where the dump should start. The default value for -root is cell. This option is only valid for server name space dumps.

Option Description
tree Dump the tree starting at the tree root context.
host Dump the tree starting at the server host root context (synonymous with "node").
legacy Dump the tree starting at the legacy root context.
cell Dump the tree starting at the cell root context. This is the default option.
node Dump the tree starting at the node root context (synonymous with "host").
server Dump the tree starting at the server root context. This is -root default.
default Dump the tree starting at the initial context which JNDI returns by default for that server type.

-format {jndi | ins}

Specify the format to display name component as atomic strings or parsed according to INS rules (id.kind). This option is only valid for server name space dumps.

Option Description
jndi Display name components as atomic strings. This is -format default.
ins Display name components parsed according to INS rules (id.kind).




 

Related tasks

View java:, local: and server name space dumps
View a name space dump
Troubleshooting name space problems

 

Related Reference

dumpNameSpace tool