Hi,
I have got the below code to retrieve the message from MSMQ using JavaScript. It retrieves the message from MSMQ if there is a messages in the queue. Browser it hangs, it tries to retrieve the message but there is no message in the queue.
if anyone knows the JavaScript code to check if the private queue is empty or not, Please share it to me.
I look forward to your reply.
Thanks in Advance.
Kiruba
var qi = new ActiveXObject (“MSMQ.MSMQQueueInfo”);
qi.pathname = “.
var MQ_SEND_ACCESS = 2;
var MQ_DENY_NONE = 0;
var q;
q = qi.Open (MQ_SEND_ACCESS, MQ_DENY_NONE);
var msg = new ActiveXObject (“MSMQ.MSMQMessage”);
msg.body = “Hello World”;
msg.label = “Hello World label”;
msg.Send (q);