4 Replies Latest reply on Oct 26, 2009 10:59 AM by amagno

    JBoss shutdown signal

      Hi all,
      is there a way to know in the application (ear) that a server shutdown has been requested?

      TIA,
      Alphonsus.

        • 1. Re: JBoss shutdown signal
          jaikiran

          Which version of JBoss AS? And what exactly are you trying to do?

          • 2. Re: JBoss shutdown signal

            If I use shutdown -S server won't go down (I'm looping through a list and sending and receiving messages synchronously). If I know a shutdown has been requested I can break the loop and shutdown will go on.

            Thanks for your interest.

            P.S.: JBoss 5.1.0


            "jaikiran" wrote:
            Which version of JBoss AS? And what exactly are you trying to do?


            • 3. Re: JBoss shutdown signal
              jaikiran

               

              "amagno" wrote:
              If I use shutdown -S server won't go down (I'm looping through a list and sending and receiving messages synchronously).

              What you are doing isn't probably correct (the looping thing), but i don't really know your usecase in detail.

              "amagno" wrote:

              If I know a shutdown has been requested I can break the loop and shutdown will go on.



              See if this helps http://www.jboss.org/community/wiki/StartupAndDeploymentCheck. You probably will have to look into that MBean for more details to see if it sets the status to "Stopping" or something similar when a shutdown is requested.


              • 4. Re: JBoss shutdown signal

                Well the "looping thing" actually are data read from a database that have to be sort of synchronized with another site through websphere mq (and it has to be done in a batch). Better ideas are welcome.

                Thanks for the link.

                "jaikiran" wrote:
                What you are doing isn't probably correct (the looping thing), but i don't really know your usecase in detail.