On 11/1/07, Roger Hoover <[EMAIL PROTECTED]> 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 configure the consumers to use the failover transport (http://activemq.apache.org/failover-transport-reference.html) so that they'll reconnect automatically? Even if a given consumer only connects to a single broker, this is a good idea. And using the initialReconnectDelay option will give the broker(s) time to restart allowing the consumers to survive a broker going offline temporarily. Bruce -- perl -e 'print unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*" );' Apache ActiveMQ - http://activemq.org/ Apache ServiceMix - http://servicemix.org/ Apache Geronimo - http://geronimo.apache.org/ Castor - http://castor.org/