Thread

Skip Navigation LinksForums > Rapise Forums > Rapise Best Practices > Testing MSMQ Applications

Testing MSMQ Applications RSS Feed

Wednesday, March 14, 2012

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

1 Replies
Adam SAdam S
re: Adam S on Wednesday, March 14, 2012
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);
Tagged
Statistics
  • Started: 3/14/2012
  • Last Reply: 3/14/2012
  • Replies: 1
  • Views: 8242
Powered by KronoDesk v1.1.0.15 | © Copyright Inflectra Corporation 2011-2016 | Licensed to Inflectra Corporation.