开发者

MSMQ: Receiving both positive & negative acknowledgments for delivery of a message

开发者 https://www.devze.com 2023-03-18 06:50 出处:网络
I have a simple C# application that sends a message via MSMQ to a remote server over HTTPS. I have specified a TimeToReachQueue value for the message, and an administration queue so I can receive posi

I have a simple C# application that sends a message via MSMQ to a remote server over HTTPS. I have specified a TimeToReachQueue value for the message, and an administration queue so I can receive positive or negative acknowledgments regarding delivery of the message (I specified "FullReachQueue" as the AcknowledgeType.) About 10 seconds after I send the message, I get a message in my local administration queue saying "The message reached the queue." Howev开发者_运维知识库er, after the TimeToReachQueue interval expires--be it 30 seconds or 5 minutes-- I get a second message saying "The time-to-reach-queue has elapsed." Every reference to the "TimeToReachQueue" interval I can find says you will only get a negative acknowledgment if the message didn't reach the queue within the specified interval.

When I check the remote server's queue, the message is actually in the destination queue, so how can I receive messages saying both that it did and didn't arrive?


Are there any outgoing queues on the remote server pointing back to the original sending machine that contain ack messages of any kind?

0

精彩评论

暂无评论...
验证码 换一张
取 消