[jboss-user] [Management, JMX/JBoss] - MBean POJO(jboss ejb3 annotations) NOT working in jboss 5

yashendrac do-not-reply at jboss.com
Wed May 20 16:47:50 EDT 2009


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:
  | 

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232351#4232351

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232351



More information about the jboss-user mailing list