1 Reply Latest reply on Aug 6, 2004 2:12 AM by genman

    ServiceMBean doesn't start when using jboss.xmbean

    dhondts

      When deploying a class with following XDoclet tags:
      @jmx.mbean name="xx:service=yy"
      extends="org.jboss.system.ServiceMBean"
      @jboss.service servicefile="jboss"
      @jboss.xmbean
      on JBoss 3.2.3, the service is never started.

      I saw that in the generated yy.xml file the start and stop method are not included.
      Does somebody know why and how to fix this?

        • 1. Re: ServiceMBean doesn't start when using jboss.xmbean
          genman


          You have to add stop/start methods. Unfortunately, there is no way to add "interheritence" to an XMBean file. I think you should be able to add opertions from another XMBean .xml file to your own via XDoclet, but it would require a lot of changes and I haven't made the effort yet.