1 Reply Latest reply on Nov 24, 2004 6:18 AM by Dimitris Andreadis

    jbossInternalLifecycle(String arg) method behaviour?

    Deepak Nohwal Newbie


      I recently shifted to JBoss 3.2.6 from JBoss 3.2.3. In my project, I have all the MBeans implementing org.jboss.system.ServiceMBean. The trouble is with jbossInternalLifecycle(String arg) method which has been added to ServiceMBean interface. I added a dummy implementation in my MBean corresponding to this method. But due to this, when I try to deploy my MBean, my start() method doesn't get automatically invoked and hence my MBean never starts. Can someone please tell me what is the importance of this method and possibly point me to its Javadoc? I have failed to find its javaDoc anywhere.

      I would appreciate any response/hint/suggestion.

      Many thanks.

        • 1. Re: jbossInternalLifecycle(String arg) method behaviour?
          Dimitris Andreadis Master

          This method was added so that a Service MBeans gets hooked with the ServiceController, so that, when you start or stop a service all dependent MBeans get started/stopped accordingly.

          If you extend ServiceMBeanSupport then you don't need to provide an implementation of this method, it's implemented for you.

          If not, then implement Service instead of ServiceMBean.

          If you are interested, look at the ServiceMBeanSupport implementation.