« Return to Thread: Queue does not drain completely.

Re: Queue does not drain completely.

by mjustin :: Rate this Message:

Reply to Author | View in Thread

I don't know the PHP Stomp client very well (but a Delphi implementation).

$stomp->read() seems to return immediately without waiting for the next message.
There might be a different method $stomp->read(receivetimeout), which waits for the given time (in milliseconds) before it gives up.

Michael

RakeshRay wrote:
Just installed Active MQ 5.2.
Using Stomp, inserted 5000 msgs and try to read the same with
while ( my $msg = $stomp->read() ) {
        $stomp->commit();
        print $msg.$/;
}
It leaves 2 messages in the queue, just reads 4998 and comes out.

Any suggestions?
Michael Justin
SCJP, SCJA
betasoft - Software for Delphi™ and for the Java™ platform
http://www.mikejustin.com - http://www.betabeans.de

 « Return to Thread: Queue does not drain completely.