0 Replies Latest reply on May 15, 2012 10:19 AM by miragpl

    Deploying Pojo MBean in EAR

    miragpl

      Hi everyone,

       

      I would like to know how should I deploy POJO Mbean into an EAR on Jboss 6.1 ? When I deploy an mbean as sepearte jar I only need to put *-jboss-beans.xml file into deploy folder with the definition of the mbean.

      For example:

       

      <deployment xmlns="urn:jboss:bean-deployer:2.0">

                <bean name="MyService" class="test.java.mbean_problem.MyService">

                          <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="test.java.mbean_problem:service=MyService", exposedInterface=test.java.mbean_problem.IServiceMBean)</annotation>

                             <start method="start"/>

                             <stop method="stop"/>

                </bean>

      </deployment>

       

      Now I want to put this service into an ear. Using *-jboss-beans.xml inside an ear is unfortunately not enough:/


      I would appreciate any hint;)

      Thanks in advance!