2 Replies Latest reply on May 21, 2009 2:35 AM by jaikiran pai

    MBean POJO(jboss ejb3 annotations) NOT working in jboss 5

    yashendra chandrakar Newbie

      I am not able to deploy MBean POJO in jboss 5 though it works in jboss4.
      I have an MBean POJO developed using jboss ejb3 annotations @Service and @Management

      something like this :

      import org.jboss.ejb3.annotation.Management;
      import org.jboss.ejb3.annotation.Service;
      import javax.ejb.EJB;
      @Management( KeyStoreServiceMBean.class )
      @Service( objectName = "smc.jboss:service=KeyStoreService" )
      public class KeyStoreService implements KeyStoreServiceMBean {
      
       @EJB
       private KeyStoreSession keyStoreSessionBean;
       ...
       ...
      }
      


      As using jboss ejb3 annotation, in place of bundling in .sar with *-service or *-bean. I have directly bundled it in jar and there is no *-service or *-bean xml for defining this MBean.

      This same jar gets deployed without any complaint in jboss 4 but it never gets deployed in jboss 5 only message i see in log is


      2009-05-20 16:25:42,877 INFO [org.jboss.ejb3.deployers.JBossASKernel] Added bean(jboss.j2ee:ear=core.ear,jar=core.jar,name=KeyStoreService,service=EJB3) to KernelDeployment of: core.jar
      2009-05-20 16:25:42,877 INFO [org.jboss.ejb3.deployers.JBossASKernel] installing bean: jboss.j2ee:ear=core.ear,jar=core.jar,name=AlarmsListener,service=EJB3
      2009-05-20 16:25:42,877 INFO [org.jboss.ejb3.deployers.JBossASKernel] with dependencies:
      2009-05-20 16:25:42,877 INFO [org.jboss.ejb3.deployers.JBossASKernel] and demands: