KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am trying to send a message to a remote queue. My process isn't failing, but I still don't see the message on the remote queue? I would assume it would fail if it couldn't process the message? I did notice that on my local machine the remote queue is listed in Outgoing queues, but don't see messages there either. Very ignorant here and all examples show that how I am doing (or so I assume) is correct. Code (Simple for test): using (var transaction = new TransactionScope()) { using (var queue = new MessageQueue(@"FormatName:DIRECT=OS:mymachine\MyQueueQueue")) { XDocument xdoc = XDocument.Parse("<root/>"); var message = new Message(xdoc.ToString()); queue.Send(message, MessageQueueTransactionType.Single); } transaction.Complete(); } Console.Read(); } What I am doing wrong? Strange...no errors, but don't see message anywhere. Write works to my local queue.
Tags (comma-separated)
Save Edits
Cancel