예제 #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);
     //    });
 }