5 Replies Latest reply on Nov 15, 2017 9:03 AM by Kavintha Maduranga

    Jboss EAP 7 singleton-bean access

    Kavintha Maduranga Newbie

      In earlier versions i could access the MBean using following code,

       

      ObjectName objectName = new ObjectName(

                "se.cambiosys.connect.publish.publisher.administration.Administration:type=Administration");

       

            AdministrationMBean mbean = (AdministrationMBean) MBeanServerInvocationHandler.newProxyInstance(null, objectName,

                AdministrationMBean.class, false);

       

       

      But i'm not sure if i can use above for JBoss EAP 7. Any clue with an example ?