April 17th, 2013, 01:26 PM
I have got the below code to retrieve the message from MSMQ using
the queue. Browser it hangs, it tries to retrieve the message but there
is no message in the queue.
empty or not, Please share it to me.
I look forward to your reply.
Thanks in Advance.
var qi = new ActiveXObject ("MSMQ.MSMQQueueInfo");
qi.pathname = ".\\private$\\myqueue";
var MQ_SEND_ACCESS = 2;
var MQ_DENY_NONE = 0;
q = qi.Open (MQ_SEND_ACCESS, MQ_DENY_NONE);
var msg = new ActiveXObject ("MSMQ.MSMQMessage");
msg.body = "Hello World";
msg.label = "Hello World label";