MsmqWriteStep only works with Transaction queues

May 26, 2009 at 9:33 AM

 I've been trying to use the MsmqWriteStep, but nothing was going into the queue

Think I've tracked it down to the use the the MessageQueueTransactionType.Single ... my queue isn't transactional

MessageQueue queue = new MessageQueue(queuePath);
Message msg = new Message();

msgStr = StreamHelper.LoadFileToStream(sourcePath);
msg.BodyStream = msgStr;
msg.UseDeadLetterQueue = true;

if (null != correlationId)
{
msg.CorrelationId = correlationId;
}
msg.AppSpecific = appSpecific;

queue.Send(msg, messageLabel, MessageQueueTransactionType.Single);

 Something to be aware of ... maybe a comment in the doc's ?

Coordinator
Jun 5, 2009 at 8:30 PM

This is fixed in v3.1 will will be released soon,

 

thanks,

 

Kevin