Need a regular dead letter queue using MSMQ, not WCF

I am using MSMQ on Server 2012 with a class System.Messaging

, not WCF. When my message is sent to my private queue, I set the TimeToBeReceived

message property to 1 minute. If this time expires, I need this message to be removed from this queue and placed on the secondary queue. For this, I set UseDeadLetterQueue = true

what causes the message to move to the system DLQ. The problem, of course, is that this message can be mixed with messages from other queues.

I have two questions:

  • Without using WCF, is there a way to specify a custom DLQ?

  • Is there any other way to handle this expiration time and send the message to another queue that doesn't include DLQ?

+3


source to share





All Articles