Can we use the properties "constantPendingMessageLimitStrategy" and
"constantPendingMessageLimit" to 
limit maximum number of pending messages when the durable subscriber is down
?

Other wise what is the way to limit number of pending messages of a durable
subscriber in the event when the subscriber is down. In my case, when the
durable subscriber is down and producer is keep on sending messages, the
number of pending messages are growing and eating up all the memory of
broker and making the other producers to stall. Is there any way to limit
the number of pending messages ?


Gary Tully wrote:
> 
> glad to hear you got sorted. that should do it!
> 
> 2009/10/19 bravegag <[email protected]>
> 
>>
>>
>> Gary Tully wrote:
>> >
>> > The constantPendingMessageLimitStrategy is only applicable to topics.
>> For
>> > queues, there is no way to have excess messages auto discarded except
>> > through message expiry.
>> > Will a topic work for your use case?
>> >
>> Hi Gary,
>>
>> Many thanks for your reply. Indeed I said queues in general but in
>> concrete
>> I am using Topics.
>>
>> I found a solution to my problem. I just name my Topics using a
>> predefined
>> name pattern preffix e.g. Milestone{0} so I add a policy using wildcards
>> to
>> match all Topics named starting with that prefix; it seems to work.
>>
>> Many thanks once more.
>> Best regards,
>> Giovanni
>> --
>> View this message in context:
>> http://www.nabble.com/createTopic-on-the-fly-specifying-constantPendingMessageLimitStrategy-tp25937566p25963378.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> http://blog.garytully.com
> 
> Open Source Integration
> http://fusesource.com
> 
> 

-- 
View this message in context: 
http://old.nabble.com/createTopic-on-the-fly-specifying-constantPendingMessageLimitStrategy-tp25937566p26976767.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to