MQ Get from Queue using .NET amqmdnet.dll
I am receiving message on vetted Queue. I want to read it using amqmdnet.dll. My problem is of matching messageID. I have read the messageID as string format and in vetted queue tring to match it with the message. As message takes byte() I have converted it as
oMQMessage.MessageId = (New UnicodeEncoding).GetBytes(sMQMessageID.Substring(0 , 12))
This line works but then in
oMQ_GMO.Options = MQC.MQMO_MATCH_MSG_ID
oMQQueue.Get(oMQMessage, oMQ_GMO) I get application error. Plese guide me on this.
|