[rabbitmq-discuss] properties.headers in Perl client

Emile Joubert emile at rabbitmq.com
Tue Dec 21 20:47:05 GMT 2010


Hi vickerto,

I can confirm that POE::Component::Client::AMQP (by Eric Waters) lets 
you set headers. This works for me:

     $queue->publish($msg,
       {
         headers => { 'key' => 'value'}
       }
     );

Regards

Emile


Op 21/12/2010 20:11, het vickerto geskryf:
>  From what I've seen, most of them just set the headers to an empty
> AMQP table with no way of setting them.  I'm taking a look at possibly
> updating Net::RabbitMQ (which uses librabbitmq) to accept the headers
> and process them, but I'm going to have to dust off the part of my
> brain that contains my knowledge of Perl and C :)
>
>
> On Dec 21, 12:41 pm, David Wragg<da... at rabbitmq.com>  wrote:
>> Hi Tom,
>>
>> vickerto<vicke... at gmail.com>  writes:
>>> I have successfully implemented a messaging system using one of the
>>> PHP clients that I found on the web.  I am currently working on a Perl
>>> counterpart that can send and receive messages to/from the same
>>> system.
>>
>>> The problem that I am running into is that I was successfully able to
>>> use the properties.headers to store some key/value information about
>>> my message in the PHP client, but I have yet to find a Perl client
>>> that actually supports or uses these headers.  Am I missing something
>>> or does nobody actually use these headers in Perl?
>>
>> Not all AMQP applications use the message headers, so it's plausible
>> that no-one has yet bothered to add support to the Perl clients.  Though
>> it would be a fairly significant omission, given that the headers are
>> (potentially) a part of every AMQP message.  I'm not aware of other
>> clients that take this short cut.
>>
>> David


More information about the rabbitmq-discuss mailing list