qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Richardson ...@fourc.eu>
Subject Re: Property names in subscription selectors
Date Fri, 22 May 2015 15:53:53 GMT
On 22 May 2015 at 13:57, Gordon Sim <gsim@redhat.com> wrote:

> On 05/22/2015 12:38 PM, Chris Richardson wrote:
>
>> No-go unfortunately:
>>   Error: Unmatched '{'!, character 28 of my-queue;
>> {link:{selector:""my-property"='property-value'"}}
>>
>> I've tried single quotes as well but that doesn't seem to help.
>>
>
> The selector syntax as recognised by the broker requires the property
> identifier to be enclosed in double quotes, but the value to be enclosed in
> single quotes.
>
> However the qpid::messaging client's address parsing does not handle any
> escaping of quotes, so that combination of both double and single quoted
> parts in a property value isn't possible.
>
> What you can do is construct the address options map manually (rather than
> relying on the string parsing), which works though it is admittedly clunky.
>
> See attached example.
>
>
That works perfectly, many thanks Gordon!



-- 

*Chris Richardson*, System Architect
cr@fourc.eu


*FourC AS, Vestre Rosten 81, Trekanten, NO-7075 Tiller, Norwaywww.fourc.eu
<http://www.fourc.eu/>*

*Follow us on LinkedIn <http://bit.ly/fourcli>, Facebook
<http://bit.ly/fourcfb>, Google+ <http://bit.ly/fourcgp> and Twitter
<http://bit.ly/fourctw>!*

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