3 Replies Latest reply on Jul 5, 2013 11:03 AM by Timo Hahn

    MBeanHome class in deprecated

    Rajan M

      Hi All,

       

      I am working on JDeveloper 11.1.1.6.0

      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?

       

      regards,

      Rajan