3 Replies Latest reply: Jul 5, 2013 6:03 AM by Timo Hahn RSS

    MBeanHome class in deprecated

    Rajan M

      Hi All,


      I am working on JDeveloper

      I am using MBeanHome in my java code for connecting and getting users list from LDAP. the code gives warning that the MBeanHome class is deprecated while build. Below is my code


                  MBeanHome beanHome = (MBeanHome)ctx.lookup("weblogic.management.adminhome");

                  weblogic.management.security.RealmMBean rmBean = beanHome.getActiveDomain().getSecurityConfiguration().getDefaultRealm();


      here, I am typecasting the object into MBeanHome.

      How can i use alternate way to instanciate the MBeanHome class?