2 Replies Latest reply on Jun 7, 2005 5:41 AM by hs bao dang

    Get MBean from JBoss???

    hs bao dang Newbie

      Hi everyone,

      I deployed a session bean on JBoss, and I saw it is managed by an MBean

      In the JBoss's JMX MBean View:

      MBean Name: Domain Name: jboss.j2ee
      service: EJB
      jndiName: TestFacadeBean
      MBean Java Class: org.jboss.ejb.StatelessSessionContainer

      Now, I want to get this MBean and use it's methods.
      I used this code to find the MBeanServer:

      ArrayList arl = MBeanServerFactory.findMBeanServer("jboss.j2ee");

      but art.size() = 0 and I cannot find MBean Java Class: org.jboss.ejb.StatelessSessionContainer

      Could you tell me how I can get a particular MBean from the Agent View of JBoss.
      Can I lookup it like EJBs, if can, what is it's jndiName?

      Please help me,
      I'm waiting for your answers.
      Thanks a lot.