-
1. Re: Setting JMS filter (Range filter)
ataylor Apr 25, 2013 8:09 AM (in response to ajinkya.bambal)create your consumer with something like FILTER=filterid1 or FILTER = filterid2 etc
of if your filter is numerical FILTER > 0 AND FILTER < 10
-
2. Re: Setting JMS filter (Range filter)
ajinkya.bambal Apr 25, 2013 8:21 AM (in response to ataylor)could u plz elaborate ....probably with small example....
-
3. Re: Setting JMS filter (Range filter)
ataylor Apr 25, 2013 8:35 AM (in response to ajinkya.bambal)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
-
4. Re: Setting JMS filter (Range filter)
ajinkya.bambal Apr 25, 2013 9:01 AM (in response to ataylor)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...
-
5. Re: Setting JMS filter (Range filter)
ataylor Apr 25, 2013 9:16 AM (in response to ajinkya.bambal)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