8 Replies Latest reply on Apr 24, 2005 1:56 PM by Dimitris Andreadis

    How to lookup a MBean from MBeanServer?

    Chetan Sanghi Newbie


      I can register a MBean with MBeanServer using an objectname.

      But how do I get the same MBean from MBeanServer back using the same objectname?

      The API mentions "getObjectInstance(String objectName)" which returns an ObjectInstance. My problem is I can not cast ObjectInstance to my MBean class.

      Any help is greatly appreciated.