What's the size of your heap here? Ultimately, the issue is with the way the broker works with paging in messages and applying the selectors.
Selectors are only applied once messages have been paged in from store. So if you have 1000 1MB messages ahead of the message you're interested in, you'll have to make sure your memory settings and store-page settings can handle that. Ade Trennaman has a blog about that here: http://trenaman.blogspot.com/2009/01/message-selectors-and-activemq.html On Sat, Aug 10, 2013 at 5:24 AM, rafiki <rafael.fernan...@taisis.com> wrote: > An example of what i'm doing: > > This code <http://pastebin.com/k48KbGTJ> inserts 2000 message in a queue > named DATA. This code <http://pastebin.com/FkaY8nqd> try to extract the > message in the position 1000. The message is never returned. > > The situation can be reproduced with the default configuration of ActiveMQ > 5.8.0. I'm using Debian stable with openJDK 7: > > java version "1.7.0_25" > OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1~deb7u1) > OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode) > > I'm doing something wrong? > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/Problem-reading-a-Queue-tp4670234p4670262.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > -- *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta