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-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 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

Problem reading a Queue

2013-08-09 Thread rafiki
I have a queue with a big size (more than one hundred thousand messages). I try to read the messages using persistence, session transacted and CorrelID message selector using JMS interface. When I read a message from first positions, it works fine, but if the message is in the last positions, the

Re: How to unlock a queue?

2012-12-04 Thread rafiki
Thanks for the answer. That's what I see: + Producer and consumer are working OK with "DESARROLLO.DATA" queue. + Consumer is unregistered from destination after killing it + Producer freezes trying to send next message. + I Stop producer and start it again. + Producer sends message to other queue

How to unlock a queue?

2012-12-04 Thread rafiki
I have the next situation: + An ActiveMQ stand alone Broker. + A JMS message producer sending 1MB message to a queue named "DATA" in a non transactional mode. + A JMS message consumer reading in transactional mode from the same queue. The consumer reads a message and then write it to a file. If i