You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by titexe <ti...@yahoo.Fr> on 2010/07/20 09:32:42 UTC

Re: Stomp:perl script "retrieve the values of the properties of the header"

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 <ti...@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.