Inflectra Customer Forums: Testing MSMQ Applications (Thread) How do you send messages to a database using the Microsoft Message Queue? en-US(C) Copyright 2006-2024 Inflectra Corporation.support@inflectra.com/Computers/Software/Project_Management//Computers/Software/Quality_Assurance/KronoDesksupport@inflectra.comhttp://www.inflectra.com/kronodesk/forums/threads120/Support/Forum/rapise/best-practices/256.aspxthreadId=256David J (support1@inflectra.com)Testing MSMQ Applications How do you send messages to a database using the Microsoft Message Queue? Wed, 14 Mar 2012 20:31:07 -04002012-03-14T20:31:16-04:00/Support/Forum/rapise/best-practices/256.aspxmessageId=490David J (support1@inflectra.com) var qi = new ActiveXObject ("MSMQ.MSMQQueueInfo"); qi.pathname = ".\\private$\\testqueue"; 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); Wed, 14 Mar 2012 20:31:16 -04002012-03-14T20:31:16-04:00/Support/Forum/rapise/best-practices/256.aspx#reply490