[jboss-user] [Management, JMX/JBoss] - Re: JBoss 5: MBean depends on EJB3 Staleless Bean according
yashendrac
do-not-reply at jboss.com
Wed May 20 16:42:08 EDT 2009
I am also getting some problem with MBean in jboss 5.
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=4232349#4232349
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232349
More information about the jboss-user
mailing list