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.

Reply via email to