2 Replies Latest reply on Jun 7, 2007 3:58 PM by p235

    ServiceMBean stop service

    p235

      I am implementing the start and stop methods of the ServiceMBean.
      'start' method works when the application server starts up, but the stop method doesn't.
      What is the criteria for the stop method to work? When does it get invoked?
      Can any body throw some light on this please?

      Thanks

        • 1. Re: ServiceMBean stop service
          dimitris

          It should work when you application is undeployed or the server shutsdown, so something is wrong with your implementation. Look in the wiki FAQJBossJMX for a template service.

          • 2. Re: ServiceMBean stop service
            p235

            Thanks.
            I resolved this. I am using an IDE and all along I was just terminating the server instead of shutting it down.
            That's why start was working and stop wasn't.
            Every thing is working fine now.