2 Replies Latest reply on Oct 12, 2004 9:52 AM by Adrian Brock

    graceful shut down of JMS

    tomdee Newbie

      is there a way to gracefully shut down jMS in 3.2.1 ?

      my situation is that i have a large number of queues , a number of
      JMS listener as well as various MDBs.

      We have a way to divert new request away from our JBoss servers but
      wanting a nice way to tell JMS to
      a) stop firing messages to MDB
      b) gracefully shutdown the JMS Consumers

      Thanks.




        • 1. Re: graceful shut down of JMS
          Elias Ross Master


          I don't know if JBoss JMS behaves cleanly if you shut it down in the middle of processing.

          You can probably get some idea by shutting down JMS in the middle of a load test.

          If you want the server to stay up during JMS processing, you have a couple of options. One is to shut down the services in the "jms" directory by renaming it to "jms#" or through JMX. You can also shut down various services (e.g. UIL2 server, MDB.stopDelivery, Queue.stop(), etc.) through JMX. It is easy to try these things via the JMX console.

          If what you want to do can't be done through JMX, let me know.

          • 2. Re: graceful shut down of JMS
            Adrian Brock Master

            Connection.setExceptionListener, the MDB already has one.