create your consumer with something like FILTER=filterid1 or FILTER = filterid2 etc
of if your filter is numerical FILTER > 0 AND FILTER < 10
could u plz elaborate ....probably with small example....
simple create your consumer with an expression that will include which ever messages you are interested in.
session.createConsumer(destination, "filter='A' OR filter = 'b' or FILTER='c'"); or what ever expression fits for your use case
session.createConsumer(destination, "filter='A' OR filter = 'b' or FILTER='c'" ) expression not working......
Same thing can I apply at producer side,? i.e .
jmsMessage.setObjectProperty("FILTER",filterId1 OR filterid2 OR filterId3)..... but i dnt think it will work...
message selectors are always applied on the consumer, you set the properties you want on the message, and the expression on the consumer to select which messages you want. I would take a look at the jms selector example or look for a tutorial