activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roger Hoover <roger.hoo...@gmail.com>
Subject Re: Stomp:perl script "retrieve the values of the properties of the header"
Date Mon, 19 Jul 2010 16:08:51 GMT
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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message