activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From titexe <tit...@yahoo.Fr>
Subject Re: Stomp:perl script "retrieve the values of the properties of the header"
Date Tue, 20 Jul 2010 07:32:42 GMT

it works, thank you



Roger Hoover wrote:
> 
> I think it's just:
> 
> my $headers = $frame->headers;
> my $foo_header = $headers->{'foo'};
> 
> On Mon, Jul 19, 2010 at 7:31 AM, titexe <titexe@yahoo.fr> wrote:
> 
>>
>> Hello,
>>
>> i use a perl script "stomp" to consume message from my broker.
>>
>>        my $can_read = $stomp->can_read({ timeout => "5" });
>>        if ( $can_read ) {
>>            # There is a message to collect.
>>            my $frame = $stomp->receive_frame;
>>            $stomp->ack( { frame => $frame } );
>>            my $framebody=$frame->body;
>>
>> how to retrieve the values of the properties of the header ?
>>
>> Thank you in advance
>> --
>> View this message in context:
>> http://old.nabble.com/Stomp%3Aperl-script-%22retrieve-the-values-of-the-properties-of-the-header%22-tp29205343p29205343.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
> 
> 

-- 
View this message in context: http://old.nabble.com/Stomp%3Aperl-script-%22retrieve-the-values-of-the-properties-of-the-header%22-tp29205343p29212129.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message