activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <gary.tu...@gmail.com>
Subject Re: How to limit queue by number of messages
Date Thu, 29 Oct 2009 23:59:36 GMT
correct. message expiry or time to live, is currently the only option for
queues.

2009/10/29 brett.humphreys <brett.humphreys@gmail.com>

>
> For what it is worth, I believe in 5.X message eviction strategies are not
> honored by Queues.  TTM's document (listed on the AMQ website) suggests
> otherwise, however empirically speaking and going throughout the code it
> looks like MessageEvictionStrategies are only applicable to
> TopicSubscribers.
> -Brett
>
>
> Dave Stanley wrote:
> >
> > I think an EvictionStrategy might work. You can evict least recent or
> > most recent messages once your queue gets to a certain size.
> >
> >
> http://activemq.apache.org/maven/activemq-core/apidocs/org/apache/activemq/broker/region/policy/MessageEvictionStrategy.html
> >
> > Cheer's,
> > /Dave
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/How-to-limit-queue-by-number-of-messages-tp26014447p26117765.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 
http://blog.garytully.com

Open Source Integration
http://fusesource.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message