The Query and Filtering service helps applications select the MBeans upon which management operations are performed. The selection can be based upon:
an object name expression -- the MBean server will use pattern-matching on the names of the MBeans. The matching features for the name components are explained in detail in the v1.0 public release 2 of the Java Management Extensions Specifications (JMX).
the presence and values of specific attributes in object names.
For example, a filter could select all the MBeans for which the attribute color is red. The query and filtering service is not implemented as an MBean. It is part of the infrastructure of the MBean server. The query and filter service can be used by both the agent and by the manager to perform filtered retrieval of MBeans.
Query expressions adhere to the Java Management extensions specification and can be built to retrieve collections of MBeans in one operation. The query expressions are based on the values of MBean attributes. Query expressions are used as filters and allow you to retrieve MBeans according to their attribute values within an MBean server.