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.