Проблема отправки сообщения MSMQ ... (c #) - PullRequest
4 голосов
/ 01 апреля 2009

Мой код:

  string _path = "mymachine\\Private$\\example";
  // create a message queue object
  MessageQueue MQueue = new MessageQueue(_path);

  // create the message and set the base properties
  Message Msg = new Message("Messagem");
  Msg.ResponseQueue = MQueue;
  Msg.Priority = MessagePriority.Normal;
  Msg.UseJournalQueue = true;
  Msg.Label = "gps1";      

  // send the message
  MQueue.Send(Msg);

  // close the mesage queue
  MQueue.Close();

Нет ошибки, но ничего в моем MessageQueue ... Любая помощь?

1 Ответ

7 голосов
/ 01 апреля 2009

Я нашел проблему ... Мое MessageQueue было создано с транзакцией true ...

...