I need to pick up messages off an IBM MQ queue without polling so I am looking at some async sample code from IBM. I see sample code to async get with JMS/XMS but not MQI (amqmdnet).
The closest I have come to not having to poll continuously with MQI is to wait, but not advised of course for long periods of time so you are still polling:
requestMessage = new MQMessage();
MQGetMessageOptions gmo = new MQGetMessageOptions();
gmo.Options = MQC.MQGMO_WAIT;
Is there a way to asynchronously get messages off a queue using MQI? Or is XMS the only way to go?