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.adam 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);
Statistics
  • Started: Wednesday, March 14, 2012
  • Last Reply: Wednesday, March 14, 2012
  • Replies: 1
  • Views: 9700