have a peek at: http://activemq.apache.org/slow-consumer-handling.html

you just need to configure a ConstantPendingMessageLimitStrategy of 1
and a prefetch of 1 for your non durable subs.

On 3 August 2011 10:40, kaustubh khasnis <kaustubh.khas...@gmail.com> wrote:
> Hi,
> Is there any way in activeMQ to disable the message cursor for non-durable
> subscribers. My use case is like: the messages should always be persistent
> and will have both durable and non-durable subscribers to it. In case
> durable subscriber is faster than non-durable subscriber , MQ will still
> keep on holding message for non-durable subscriber and after consumed by him
> , delete them. Instead I want non-durable subscriber to get latest available
> message which means dropping some messages. As far as I understand in case
> consumer is not catching up, MQ maintains a cursor for it, which clearly I
> dont want in my use case in case of non-durable consumer. how do I achieve
> that??
>
>
> Please correct me if I am wrong in any of my understanding.
>
> Thanks and regards
> Kaustubh
>



-- 
http://fusesource.com
http://blog.garytully.com

Reply via email to