1 Reply Latest reply on Nov 21, 2006 2:49 PM by weston.price

    To participate in the service lifecycle of JBoss application

    anvar

      I have to make one of my service to participate in the service
      lifecycle of JBoss AS.
      For this, should my service must
      implement the org.jboss.system.Service interface or one of its subinterfaces, or implement matching operations.

      Thanks

        • 1. Re: To participate in the service lifecycle of JBoss applica
          weston.price

          Easiest thing to do is write an MBean

          public class MyService extends org.jboss.system.ServiceMBeanSupport implements MyServiceMBean
          {
          
          }
          
          
          public interface MyServiceMBean extends org.jboss.system.ServiceMBean
          {
          
          }
          
          


          Then it simply becomes a matter of overriding the methods you are interestings in (ie create/start/stop)