Re: Problem reading a Queue

2013-08-15 Thread rafiki
OK, I see the problem. I decided to change the architecture of my software in order to read always the first enqueued message. Now it is more fast than before despite the design is more complex. Thanks for helping me, I'm very grateful! -- View this message in context: http://activemq.228332

Re: Problem reading a Queue

2013-08-12 Thread Christian Posta
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

Re: Problem reading a Queue

2013-08-10 Thread rafiki
An example of what i'm doing: This code inserts 2000 message in a queue named DATA. This code try to extract the message in the position 1000. The message is never returned. The situation can be reproduced with the default config

Re: Problem reading a Queue

2013-08-09 Thread Christian Posta
Post your config and your code. I you have a test case, even better. On Friday, August 9, 2013, rafiki wrote: > Yes, it works with Auto Acknowledge, but I can't lose data, so I need a > transacted session. > > I tryed with useCache="false" but I obtain the same result. > > I used my program with

Re: Problem reading a Queue

2013-08-09 Thread rafiki
Yes, it works with Auto Acknowledge, but I can't lose data, so I need a transacted session. I tryed with useCache="false" but I obtain the same result. I used my program with a commercial JMS provider (IBM WMQ) and it works. I don't know if this is a limitation of ActiveMQ, a bad configuration o

Re: Problem reading a Queue

2013-08-09 Thread Christian Posta
It works with selectors and Auto Acknowledge? What happens if you disable the cache with http://activemq.apache.org/per-destination-policies.html On Fri, Aug 9, 2013 at 6:28 AM, rafiki wrote: > I have a queue with a big size (more than one hundred thousand messages). > I > try to read the me