I haven't tried this but one trick I know is used elsewhere and might be worth a shot is to use [double] quotes around the property name as well, i.e pretending it is a literal like for the values.
On 22 May 2015 at 12:13, Chris Richardson <[email protected]> wrote: > Hi, > > I'm trying to use a selector based on the information in this post: > http://grokbase.com/p/qpid/users/136t684en1/message-selection-filtering-using-c-client-with-the-java-broker > > except I'm using the C++ broker (and client) 0.32. > > The selector seems to work with the following syntax: > "my-queue; {link:{selector:\"myproperty='property-value'\"}}" > > but if I try to use a message property which contains a hyphen, it does > not. Eg. > "my-queue; {link:{selector:\"my-property='property-value'\"}}" > matches nothing, even though the property exists in the message complete > with a hyphen in the name. > > I guess this is a restriction imposed by the property name being required > to be a java identifier? > > Is there any way around this, or another method/syntax I could use to > filter messages by property value in my queue subscription? > > Any advice much appreciated. > > -- > > *Chris Richardson*, System Architect > [email protected] > > > *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>!* --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
