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

    How to lookup a MBean from MBeanServer?

    chetansanghi

      Hi

      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.

      Regards
      Chetan