示例#1
0
        public void CreateQueue()
        {
            ActiveMQWriter w = new ActiveMQWriter(this._queueUrl, this._queueName);
            w.WriteMessageToQueue("DEL", "__DEL__", false);

            ActiveMQReader r = new ActiveMQReader(this._queueUrl, this._queueName);
            r.ReadMessage("__DEL__");
        }
示例#2
0
 private void WriteResponseToQueue(string id)
 {
     //Task.Factory.StartNew(() =>
     //    {
             ActiveMQWriter w = new ActiveMQWriter(System.Configuration.ConfigurationManager.AppSettings["ActiveMQURL"],
                 System.Configuration.ConfigurationManager.AppSettings["ActiveMQRS"]);
             w.WriteMessageToQueue(ResponseMessage, id, false);
     //    });
 }