On Wed, Mar 25, 2009 at 9:24 AM, retep <[email protected]> wrote:
>
> Hi,
>
> we are using topic messages to sent messages from one user to another. Our
> program subscribe a durable consumer with selector "UserName='<user>'" and
> sent a message with the property "UserName" and value "<user>".
>
> All works fine, when <user> contains only ASCII characters. When <user>
> contains non ASCII characters like äöüßé, the message is not sent to the
> consumer.
>
> I have looked in the data files and everything looks fine.
>
> We are using ActiveMQ 5.2.
According to the JMS spec, section 3.8.1.1 Message Selector Syntax:
A string literal is enclosed in single quotes, with an included single quote
represented by doubled single quote; for example, ‘literal’ and ‘literal’’s’.
Like Java String literals, these use the Unicode character encoding.
Just an idea, have you tried using the Unicode characters instead of
ASCII?
Bruce
--
perl -e 'print
unpack("u30","D0G)u8...@4vyy9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'
Apache ActiveMQ - http://activemq.apache.org/
Apache Camel - http://camel.apache.org/
Apache ServiceMix - http://servicemix.apache.org/
Blog: http://bruceblog.org/