0 Replies Latest reply on Jan 29, 2007 8:43 AM by J-C jc

    Embedded JBoss & MBean

    J-C jc Apprentice

      I use embedded JBoss alpha8.

      When I try to deploy an MBean into embedded JBoss, I have an exception:

      @Service (objectName="trail:service=calculator")
      @Management(Calculator.class)
      public class CalculatorMBean implements Calculator {
      ...


      java.lang.RuntimeException: Problem registering @Management interface for @Service class fr.biomerieux.audit.browser.CalculatorMBean
       at org.jboss.ejb3.service.ServiceContainer.registerManagementInterface(ServiceContainer.java:381)
       at org.jboss.ejb3.service.ServiceContainer.start(ServiceContainer.java:107)
       ...
       at org.jboss.ejb3.embedded.EJB3StandaloneDeployer.start(EJB3StandaloneDeployer.java:460)
       at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.scanClasspath(EJB3StandaloneBootstrap.java:291)
       ...
      Caused by: java.lang.IllegalStateException: No 'jboss' MBeanServer found!
       at org.jboss.mx.util.MBeanServerLocator.locateJBoss(MBeanServerLocator.java:122)
       at org.jboss.ejb3.service.ServiceContainer.registerManagementInterface(ServiceContainer.java:360)
       ... 42 more
      


      Is it possible to deploy MBean in Embedded JBoss ?

      Should I add a deployment file to start MBeanServer ?