Hi all,
I need to deploy an MBean into jboss without using the @Service and @Depends annotations.
Reading the jboss doc (here http://docs.jboss.org/jbossas/guides/installguide/r1/en/html/config-files.html and here http://docs.jboss.org/jbossmessaging/docs/guide-1.0.1.SP5/html/configuration.html) I understood that I can create a *-service.xml file defining my mbean objects and put this file under the META-INF folder.
My -service.xml is the following :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mbean PUBLIC
"-//JBoss//DTD MBean Service 5.0//EN"
"http://www.jboss.org/j2ee/dtd/jboss-service_5_0.dtd">
<!-- ===================================================================== -->
<!-- JBoss Server Configuration for Phase Handler -->
<!-- ===================================================================== -->
<server>
<mbean code="com.paddypower.phase.input.bean.service.InputServiceBean"
name="phase:service=InputServiceBean"
xmbean-dd="resource:META-INF/input-service-xmbean.xml">
<depends-list>
<depends-list-element>HornetQServer</depends-list-element>
</depends-list>
</mbean>
</server>
and this is my MBean:
@Local(InputServiceBeanLocal.class)
@Remote(InputServiceBeanRemote.class)
public class InputServiceBean extends NotificationBroadcasterSupport implements InputServiceBeanLocal, InputServiceBeanRemote, InputServiceBeanManagement {
...
Once the ear containing the above is deployed, no service has been started.
I can see in the jmx-console the bean, but it has not been started.
Any clue on what I'm missing?
Thanks
Marco