Seems PFC can work in your case.
Enabling PFC in your specific queue can prevent producers from pushing more 
messages than the memory limit.
When consumers take messages from the queue, the memory usage decreases to be 
smaller than the limit,
producers can resume pushing messages.

At 2013-02-27 21:23:41,jayeff <johannesfel...@googlemail.com> wrote:
>Hi all,
>
>is there a way to prevent a given queue from taking any new messages, while
>keeping the messages already enqueued in the queue? I would like to use some
>mechanism like this to softly shutdown the broker, allowing the messages
>that were already enqueued to be processed but not to take new messages.
>
>Grateful for any ideas! :)
>
>Best regards,
>jayeff
>
>
>
>--
>View this message in context: 
>http://activemq.2283324.n4.nabble.com/Prevent-Queue-from-taking-new-messages-keeping-messages-already-in-queue-tp4664197.html
>Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to