dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: [RESOLVED] How to check if the private queue is empty or not? (MSMQ using JavaScript)

  1. #1
    Join Date
    Apr 2013
    Posts
    2

    resolved [RESOLVED] How to check if the private queue is empty or not? (MSMQ using JavaScript)

    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 = ".\\private$\\myqueue";

    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);

  2. #2
    Join Date
    Apr 2013
    Posts
    2
    The below link provides the solution for this problem. It has the function to checks whether the private MSMQ is empty or not.

    http://stackoverflow.com/questions/3...e-with-jscript

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles