Hi Gordon,

Thanks a lot for clarification. 


Best Regards,
Sergey Zhemzhitsky
Information Technology Division
Troika Dialog, 4, Romanov lane, Moscow 125009, Russia
Phone. +7 495 2580500 ext. 1246

-----Original Message-----
From: Gordon Sim [mailto:[email protected]] 
Sent: Wednesday, June 22, 2011 12:51 PM
To: [email protected]
Subject: Re: qpid-config: create a binding for a headers exchange

On 06/22/2011 07:21 AM, Zhemzhitsky Sergey wrote:
> Hi there,
>
> I'm trying to investigate headers exchange type.
> By means of qpid-config tool I was able to create a binding using the 
> following command:
>
> qpid-config bind myExchange.headers myQueue bindingKey any 
> header1=header1Val, header2=header2Val
>
> If not to specify bindingKey an error occurs.
>
> I'm wondering why do I need to specify binding key for exchange of type 
> "headers"?

That's a result of the tool using positional arguments and not being clever 
enough to detect that the binding key was not specified.

You can have a null binding key by using e.g.

qpid-config bind myExchange.headers myQueue '' any header1=header1Val, 
header2=header2Val

The binding key for the headers exchange is used only for identity. You need it 
when unbinding and it must be unique for a given exchange and queue pairing. 
Null is valid value, but the uniqueness still applies so you can't have more 
than one binding between the same queue and exchange with a null binding key.

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]


_______________________________________________________

The information contained in this message may be privileged and conf idential 
and protected from disclosure. If you are not the original intended recipient, 
you are hereby notified that any review, retransmission, dissemination, or 
other use of, or taking of any action in reliance upon, this information is 
prohibited. If you have received this communication in error, please notify the 
sender immediately by replying to this message and delete it from your 
computer. Thank you for your cooperation. Troika Dialog, Russia. 
If you need assistance please contact our Contact Center  (+7495) 258 0500 or 
go to www.troika.ru/eng/Contacts/system.wbp  



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to