4 Replies Latest reply on Oct 18, 2005 12:07 PM by denisius

    Synchronous stop

    denisius

      Is it any method to shutdown JBoss synchronously?

        • 1. Re: Synchronous stop
          vickyk

          What do you mean by synchronous shutdown , can you explain this ?
          Regards
          Vicky

          • 2. Re: Synchronous stop
            denisius

            I must notify user that server stopped. So for example it should be like:

            ....
            server.synchStop(); // ivoke via RMIAdapter
            System.out.println("server stopped"); // here i must be sure that jboss realy stopped
            .....

            • 3. Re: Synchronous stop
              vickyk

              I dont think there is any method to do so and it also does not make the logical sense also . Why don't you use the jmx-console to invoke the shutdown and then verify the same is done by refreshing the page .
              However I will investigate and see if there can be a way to do that , I got to check myself this
              Regards
              Vicky

              • 4. Re: Synchronous stop
                denisius

                As i understand the best solution is to add shutdownHook to VM and when VM runs this hook it means that server will stop soon - in few sec.