Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Consumer Selector

Avatar

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,

Adrian
1 Reply

Avatar

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.




http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/jms/Message.html



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.



-Alex