activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roger Hoover" <roger.hoo...@gmail.com>
Subject Re: Is it possible to suspend and resume message delivery for broker?
Date Fri, 02 Nov 2007 00:08:23 GMT
I think the consumers will keep reconnecting so I'm not sure this will
work but will give it a try.

On 11/1/07, Diego Botticelli <diego.botticelli@gmail.com> wrote:
>
> Maybe you could, through JMX, 'stop' the consumer's connections? For example,
> through the JConsole you can invoke the 'stop' operation on the consumer's
> connection.
>
> Joe
>
>
> 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 <james.strachan@gmail.com> wrote:
> >> On 01/11/2007, Roger Hoover <roger.hoover@gmail.com> 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#a13539134
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>

Mime
View raw message