0 Replies Latest reply on Nov 29, 2011 10:23 AM by marco castigliego

    Jboss 5 - correct configuration to deploy MBean

    marco castigliego Newbie

      Hi all,


      I need to deploy an MBean into jboss without using the @Service and @Depends annotations.


      Reading the jboss doc (here  http://docs.jboss.org/jbossas/guides/installguide/r1/en/html/config-files.html and here http://docs.jboss.org/jbossmessaging/docs/guide-1.0.1.SP5/html/configuration.html) I understood that I can create a *-service.xml file defining my mbean objects and put this file under the META-INF folder.


      My -service.xml is the following :


      <?xml version="1.0" encoding="UTF-8"?>

      <!DOCTYPE mbean PUBLIC

              "-//JBoss//DTD MBean Service 5.0//EN"



      <!-- ===================================================================== -->

      <!--  JBoss Server Configuration for Phase Handler                         -->

      <!-- ===================================================================== -->



         <mbean code="com.paddypower.phase.input.bean.service.InputServiceBean"









      and this is my MBean:




      public class InputServiceBean extends NotificationBroadcasterSupport implements InputServiceBeanLocal, InputServiceBeanRemote,        InputServiceBeanManagement {




      Once the ear containing the above is deployed, no service has been started.


      I can see in the jmx-console the bean, but it has not been started.


      Any clue on what I'm missing?