ObjectName, Attribute, and AttributeList
WAS scripting commands use the underlying JMX classes, ObjectName, Attribute, and AttributeList, to manipulate object names, attributes and attribute lists.
WAS ObjectNames uniquely identify running objects. ObjectNames consist of the following...
- The domain name
- Several key properties...
type Type of object that is accessible through the MBean. For example, ApplicationServer, EJBContainer name Display name of the particular object. node Name of the node on which the object runs process Name of the server process in which the object runs mbeanIdentifier Correlates the MBean instance with corresponding configuration data
When ObjectNames classes are represented by strings, they have the following pattern
[domainName]:property=value[,property=value]*For example, you can specify...
WebSphere:name=Server, type=ApplicationServer,node=node,*. The AdminControl commands that take strings as parameters expect strings that look like this example when specifying running objects (MBeans). You can obtain the ObjectName for a running object with the getObjectName command.
Attributes of these objects consist of a name and a value. You can extract the name and value with the getName and getValue methods available in the javax.management.Attribute class. You can also extract a list of attributes.