To understand why a naming operation is failing, you can view the dump of a java: or local: namespace. From the WebSphere® Application Server scripting tool, invoke a NameServer MBean to dump java: or local: namespaces.
Start the naming service.
If the namespaces that you want to view are not local to the server process, use the dumpNameSpace tool.
You cannot use the dumpNameSpace tool to dump a java: or local: namespace because the dumpNameSpace tool cannot access those namespaces.
The java: namespace of a Java Platform, Enterprise Edition (Java EE) application is accessible only by that application. You can invoke a NameServer MBean to dump the java: namespace for any Java EE application running in the same server process.
The local: namespace contains references to enterprise beans with local interfaces. There is only one local: namespace in a server process. You can invoke the NameServer MBean associated with that server process to dump the local: namespace.
Use the scripting tool to invoke the NameServer MBean running in the application's server process to generate dumps of java: , local:, or server namespaces.
Namespace dump output is sent to the console. It is also written to the file DumpNameSpace.log in the server's log directory.
set mbean [$AdminControl completeObjectName WebSphere:*,type=NameServer,cell=MyCell,node=node1,process=server1] $AdminControl invoke $mbean dumpJavaNameSpace {{DefaultApplication}{Increment.jar}{Increment}{-report long}}
set mbean [$AdminControl completeObjectName WebSphere:*,type=NameServer,cell=MyCell,node=node1,process=server1] $AdminControl invoke $mbean dumpLocalNameSpace {{-report short}}
The following script commands set the NameServer instance that you want to invoke to nameServerString and then dump a java: namespace for DefaultApplication:
nameServerString = AdminControl.completeObjectName("WebSphere:type=NameServer,node=node1,process=server1,*") print AdminControl.invoke(nameServerString, "dumpJavaNameSpace", '[DefaultApplication Increment.jar Increment "-report long"]')
The following script commands set the NameServer instance that you want to invoke to nameServerString and then dump a local: namespace:
nameServerString = AdminControl.completeObjectName("WebSphere:type=NameServer,node=node1,process=server1,*") print AdminControl.invoke(nameServerString, "dumpLocalNameSpace", '["-report short"]')
The following script commands set the NameServer instance that you want to invoke to nameServerString and then dump a server namespace:
nameServerString = AdminControl.completeObjectName("WebSphere:type=NameServer,node=node1,process=server1,*") print AdminControl.invoke(nameServerString, "dumpServerNameSpace", '["-root server"]')
In this information ...Related reference
Related information
| IBM Redbooks, demos, education, and more(Index) |