activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From titexe <tit...@yahoo.Fr>
Subject ActiveMQ Stomp : know number of messages in queue
Date Mon, 02 Aug 2010 09:00:38 GMT

Hello,

i want in my script perl with stomp, to get all messages that exist in my
queue.

with this code, i get only the first message :

        my $can_read = $stomp->can_read({ timeout => "0.1" });
        if ( $can_read ) {
            my $frame = $stomp->receive_frame;
            my $framebody=$frame->body;
            $stomp->ack( { frame => $frame } );

How to get All Messages,

thanks in advance.
-- 
View this message in context: http://old.nabble.com/ActiveMQ-Stomp-%3A-know-number-of-messages-in-queue-tp29323208p29323208.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message