MSMQ:同时收到正数和负数对消息传递的否定确认
我有一个简单的 C# 应用程序,它通过 MSMQ 通过 HTTPS 将消息发送到远程服务器。 我已经为消息指定了 TimeToReachQueue 值和管理队列,以便我可以接收有关消息传递的肯定或否定确认(我指定了“FullReachQueue”作为 AcknowledgeType。) 发送消息后大约 10 秒,我在本地管理队列中收到一条消息,显示“消息已到达队列”。但是,在 TimeToReachQueue 间隔到期后(无论是 30 秒还是 5 分钟),我收到第二条消息,显示“到达队列的时间已过”。 我能找到的每一个对“TimeToReachQueue”间隔的引用都表明,如果消息没有在指定的间隔内到达队列,您只会得到否定确认。
当我检查远程服务器的队列时,该消息实际上位于目标队列中,那么我如何才能接收到既已到达又未到达的消息呢?
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." However, 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
远程服务器上是否有任何传出队列指向原始发送计算机,其中包含任何类型的确认消息?
Are there any outgoing queues on the remote server pointing back to the original sending machine that contain ack messages of any kind?