Testing MSMQ Applications

Wednesday, March 14, 2012
Avatar

How do you send messages to a database using the Microsoft Message Queue?

1 Replies
Wednesday, March 14, 2012
Avatar
re: inflectra.david Wednesday, March 14, 2012
var qi = new ActiveXObject ("MSMQ.MSMQQueueInfo");
qi.pathname = ".\\private$\\testqueue";

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

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Wednesday, March 14, 2012
  • Last Reply: Wednesday, March 14, 2012
  • Replies: 1
  • Views: 15263