Getting Started with the Java Dynamic Management Kit 4.2

Query and Filtering

Querying and filtering are actually performed by the MBean server itself, not by a separate MBean. This insures that such critical services are always available. Queries and filters are performed in a single operation, whose goal is to select the MBeans upon which management operations are performed.

Usually, a management application will perform a query in order to find the MBeans which will be the target of its management requests. To select MBeans, applications may specify:

For example, a filter could select all the MBeans whose object name contains "MyMBeans" and for which the attribute named color is currently equal to "red".

The result of a query operation is a list of MBean object names, which can then be used in other management requests.