8 Replies Latest reply on Jul 1, 2008 7:33 AM by Sandor Fiedler

    Can't deploy MBeans on JBoss5 Beta4

    James Callaghan Newbie

      We use MBeans loads in JBoss404 but I'm having trouble deploying any to JBoss5 Beta4. As a baasic test I've created the following bean:

      Interface:

      import org.jboss.annotation.ejb.Management;
      
      @Management
      public interface ServiceProviderMBean
      {
       public String viewServiceProviders();
      }


      and class:
      import org.jboss.annotation.ejb.Service;
      
      @Service(objectName = "mpee:service=ServiceProviderMBean")
      public class ServiceProviderMBeanImpl implements ServiceProviderMBean
      {
       public String viewServiceProviders()
       {
       return "hello";
       }
      }


      There are a load of other EJB3 beans in this application that all get deployed fine. However, this MBean isn't even seen by the deployer. It is simply not deployed. I've checked the documentation and my imports seem to be correct. Am I missing something obvious?