Re: hasFrameToRead always returns false after first message

2009-11-13 Thread Dejan Bosanac
Hi, checkout here: http://issues.apache.org/activemq/browse/AMQ-1874 Cheers -- Dejan Bosanac - http://twitter.com/dejanb Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Fri, Nov 13, 2009 at 5:51 PM, jwotman

Re: hasFrameToRead always returns false after first message

2009-11-13 Thread jwotman
Thanks Roger. My original issue was that I hadn't explicitly set the prefetch size. I don't have to worry about the nack issue because,eventually, every message does get acknowledged (if it fails after retries, it'll be acknowledged and notifications sent out). My main issue now is that I don't

Re: hasFrameToRead always returns false after first message

2009-11-12 Thread Roger Hoover
I don't know about the PHP stomp client that you're using but the STOMP protocol and AMQ broker support what you want. I wrote a twisted python STOMP client that can concurrently process stomp messages and ack them in any order. A potential issue with the approach you've described is that STOMP h

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

Re: hasFrameToRead always returns false after first message

2009-11-12 Thread Dejan Bosanac
Hi, you don't need to use hasFrameToRead() explicitly, it is used from readFrame(). So you can do something like, while ($msg = $con->readFrame()) { // do you stuff } BTW. Be sure to check PHP Stomp Client 1.0.0 released here http://stomp.fusesource.org/documentation/php/index.html Cheers