Re: hasFrameToRead always returns false after first message

2009-11-13 Thread jwotman
etchSize > by 1. Eventually, you'll hit zero and no longer get messages from the > broker. The only option is to unsubscribe and subscribe again. > > Roger > > On Thu, Nov 12, 2009 at 1:20 PM, jwotman wrote: > >> >> OK. I see now that the stomp client does

Re: hasFrameToRead always returns false after first message

2009-11-12 Thread jwotman
OK. I see now that the stomp client does not allow reading of next message until the message already read has been acknowledged. This does not match with what we need. Ideally, we'd like to "browse" the queue with Stomp and then acknowledge messages out of order when and if the operation connec

Re: hasFrameToRead always returns false after first message

2009-11-12 Thread jwotman
Hi Dejan: Thanks for the correction. However, I'm getting the same result. I created /queue/testqueue and added two messages via the admin console on activemq. I used the following as per your post: while ($message = $con->readFrame()) { print_r($message); } th

hasFrameToRead always returns false after first message

2009-11-11 Thread jwotman
I'm using PHP STOMP to read messages from activemq. I am able to read one message and then hasFrameToRead will always return false. I switched to Java to get the project out the door but want to solve this issue because we'll want to talk to activemq from multiple languages. I'm using version 5

Re: "Could not correlate acknowledgment with dispatched message"

2009-11-11 Thread jwotman
I'm seeing the same exception. Using the org.apache.activemq.ActiveMQSession.INDIVIDUAL_ACKNOWLEDGE mode because I'm reading the messages with one consumer and then a separate app acknowledges the message if all has gone well. I'm using 5.3. Daroo wrote: > > I'm getting following exception on