From users-return-11287-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Thu Nov 01 22:40:44 2007 Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 12709 invoked from network); 1 Nov 2007 22:40:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Nov 2007 22:40:43 -0000 Received: (qmail 9417 invoked by uid 500); 1 Nov 2007 22:40:31 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 9395 invoked by uid 500); 1 Nov 2007 22:40:31 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 9386 invoked by uid 99); 1 Nov 2007 22:40:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Nov 2007 15:40:31 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Nov 2007 22:40:32 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Inihv-0005Ef-BO for users@activemq.apache.org; Thu, 01 Nov 2007 15:40:11 -0700 Message-ID: <13538863.post@talk.nabble.com> Date: Thu, 1 Nov 2007 15:40:11 -0700 (PDT) From: tpounds To: users@activemq.apache.org Subject: Re: Is it possible to suspend and resume message delivery for broker? In-Reply-To: <44cb1ba30711011358h6e4c44ej46f211954b3c147b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: trevor.pounds@gmail.com References: <44cb1ba30711011057y1906455y1ca409b4971e728a@mail.gmail.com> <44cb1ba30711011358h6e4c44ej46f211954b3c147b@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org If your broker is forwarding to another broker similar to a network of brokers configuration you could stop the network connector between them temporarily via JMX. The configuration could be similar to the following: Before Connector Stop: (Producer) -> (Broker 1) -> (Broker 2) -> (Consumer) After Connector Stop: (Producer) -> (Broker 1) XXLink DownXX (Broker 2) -> (Consumer) At this point you would do your upgrade procedure on the consumer. Then start the downed link back up. What this would effectively accomplish is queuing all the messages on broker 1 until the link between broker 1 and broker 2 has been reestablished. -Trevor Roger Hoover wrote: > > Stopping the consumers involves sending SIGTERM to them which could > kill them in the middle of processing a message. Being able to > suspend delivery would allow us to make sure they were no longer > processing messages before we kill them. Granted, we can get around > this problem by retrofitting the code to handle SIGTERM appropriately > but this would have been the easier approach. > > However, there may be other use cases for a "suspend delivery" feature. > > On 11/1/07, James Strachan wrote: >> On 01/11/2007, Roger Hoover wrote: >> > While rolling out new consumer code, we'd like to suspend the broker >> > so that messages can be enqueued but not delivered. Once we've pushed >> > the new code out and restarted the consumers, we want to resume >> > message delivery. >> > >> > Is this possible with ActiveMQ? >> > >> > Any advice/info is appreciated. Thanks, >> >> Why not just stop the consumers, redeploy the code and restart them? >> >> -- >> James >> ------- >> http://macstrac.blogspot.com/ >> >> Open Source SOA >> http://open.iona.com >> > > -- View this message in context: http://www.nabble.com/Is-it-possible-to-suspend-and-resume-message-delivery-for-broker--tf4733097s2354.html#a13538863 Sent from the ActiveMQ - User mailing list archive at Nabble.com.