ObjectName, Attribute, and AttributeList classes



Search Tips   |   Advanced Search


WAS scripting commands use the JMX classes:

ObjectName uniquely identifies running objects and consists of...

When ObjectName classes are represented by strings, they have the following pattern:


To specify an appserver named My Server on node MyNode....

WebSphere:name="My Server",type=ApplicationServer,node=MyNode,*

The asterisk (*) is a regex wildcard

We can obtain the object name for a running object with getObjectName.

Attributes of these objects consist of a name and a value. We can extract the name and value with the getName and the getValue methods that are available in the javax.management.Attribute class. We can also extract a list of attributes.