5.3.1 General approach for operational tasks
In order to invoke an operation on a running MBean, you first need to know the name of the running object. Then you invoke the method on a fully qualified object name. This means that invoking operations usually involves two types of commands:
Find the object name.
Invoke the operation. In simple cases, the two commands can be combined.
Similarly, in order to change an attribute of a running object, you first need to know the object name of that running object. This means that getting or setting attributes involves a sequence of two commands:
Find the object name of the running object/MBeans.
Get or set attributes for that running object.
Use the queryNames and completeObjectName commands of the AdminControl object to identify the name of a running object. See Help for information about how to do this.