My Photo
Name:
Location: United States

Tuesday, May 09, 2006

transaction queue send

14.1 I am using an internal transaction to send a message and the message does not enter the queue. Why?
A common mistake is to use code similar to the following:
MyQueue.Send(Str,"My Message Data.", new
MessageQueueTransaction());
This is incorrect because the internal transaction is never committed, so the message is never sent. You need to create a MessageQueueTransaction object before calling Send, and then commit it. Alternatively, you can use MessageQueueTransactionType.Single.

0 Comments:

Post a Comment

<< Home