Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Consumer Selector


Level 1
I've seen examples using consumer selectors, but all of them
are simple queries like VAR = VALUE or VAR > VALUE.

Issue is that im working on a application that requires some
extra logic in there. The producer header contains an array, an
array of users, now i want that consumer selector query to be
something like VALUE is in ARRAY, for example username is in the
message.header.receivers.Is that possible with the publisher /
consumer components when using JMS ?

Thanks in advance,

1 Reply


Level 2
Hi Adrian,

Have a look at the MessageSelectors section of the j2ee
javadoc for javax.jms.Message to see what you can do with JMS
selector expressions.

I don't believe there is a way to check the contents of an
array but might be some information in there that is useful to you.
Hope that helps.