I have a working code where in I can specify options while listening to queue messages. However, code uses IBM MQ classes and I want to achieve the same functionality using JMS classes. Is there any way I can specify the options ( more of filters) while listening to queue messages using JMS listener. Attaching the sample code used while listening to queue messages using IBM MQ classes.
MQGetMessageOptions gmo = new MQGetMessageOptions ( ) ;
gmo.options = MQC.MQGMO_NO_WAIT + MQC.MQGMO_FAIL_IF_QUIESCING;
serverFileQueue.get(mqMessage,gmo);