3 Replies Latest reply on Apr 22, 2002 4:25 PM by arshrp

    queryMBeans example?

    arshrp

      Can anyone provide me with a code sample of how to use the queryMBeans method of an MBeanServer? I want to be able to select an MBean based on its "code" attribute, or if this is not possible (I select it is not), one of its name-value pairs in its "name" attribute. I have found lots where null is passed as parameters and then the return list is iterated over, but I want to be able to select a specific MBean (one in which you do not know its full ObjectName) directly.

      Long story short, I need a queryMBeans example that does something useful (does not pass null, null).