[jboss-user] [EJB 3.0] - Can a EJB3 JAR file contain standard (non-annotated) JMX MBe

hsoldier do-not-reply at jboss.com
Tue Aug 21 10:47:05 EDT 2007


Hello,

I have created an EJB3 JAR file with a number of Entity, Session beans using annotations and one single Service bean (with the @Service annotation).

In addition to the EJB3 beans, I have added some "standard" JMX MBeans that are defined in the META-INF/jboss-service.xml file. The MBean interfaces extend the org.jboss.system.ServiceMBean interface, while the implementations extend the org.jboss.system.ServiceMBeanSupport class and implement their relevant MBean interfaces.

Everything is packaged up in to one single EJB3 JAR file.

When the EJB3 JAR file is deployed to the JBoss AS 4.2.0.GA, the EJB3 deployer creates EJB3 beans (including the single Service POJO) but it does not create the "traditional" JMX MBeans.
 
I would like to know if there is a way to configure the EJB3 deployer so that   it also creates the standard JMX MBeans?

Or do I have to package and deploy them separately?

Before you ask me why I did not use @Service annotations everywhere, it was because the JBoss Embedded we use in TestNG unit/integration tests does not seem to support @Depends annotations. See the following post: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=116571 

This is a simple question, I hope someone will give a straight answer. Thanks. Any help is appreciated.

Regards:
Peter


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

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



More information about the jboss-user mailing list