2 Replies Latest reply on Oct 27, 2010 4:30 PM by lhein

    How to stop ServiceMix from a bundle?

    jeanmouloud

      Hi,

       

      I know how to stop ServiceMix using the console (osgi:shutdown command).

       

      Is it possible to achieve the same thing from a bundle (i.e. send a command to the shell without user interaction)? How?

       

      Many thanks,

      JeanMou

        • 1. Re: How to stop ServiceMix from a bundle?
          jeanmouloud

          No idea?

           

          Does it mean I can only shutdown ServiceMix manually using the shell?

           

          At least, is it possible for a bundle to stop another bundle?

           

          Tanks,

          JeanMou

          • 2. Re: How to stop ServiceMix from a bundle?
            lhein

            Jean,

             

            I think it's not really a good idea to stop the VM from within a bundle. That makes me think of an issue I once had that my application simply shut down if a special exception occured. Had a hard time to find finally out that an error handling inside a 3rd party library had a System.exit in it.

             

            So basically you should be able to do the same thing but I wouldn't suggest doing so.

             

            Why do you want to do this?

             

            Regards

            Lars