wcf - 我如何知道死信队列的URI?

标签 wcf msmq

当使用MSMQ和WCF时,请描述决定死信队列URI的算法/规则?

例如:net.msmq://localhost/private/MyQueue;DeadLetternet.msmq://localhost/system$;DeadLetter 还是其他?

我问这个问题是因为我发现了一个超越者问题,但我不同意答案,但我无法找到一个明确的定义来准确描述规则。我查过 MSDN 和两本鱼类书籍。

最佳答案

根据MSDN docs ,这就是你的答案:

Reading Messages from the Dead-Letter Queue

An application that reads messages out of a dead-letter queue is similar to a WCF service that reads from an application queue, except for the following minor differences:

To read messages from a system transactional dead-letter queue, the Uniform Resource Identifier (URI) must be of the form:
net.msmq://localhost/system$;DeadXact

To read messages from a system non-transactional dead-letter queue, the URI must be of the form:
net.msmq://localhost/system$;DeadLetter

每个 URL/服务都没有死信队列,而是每个系统/机器都有一个死信队列。

关于wcf - 我如何知道死信队列的URI?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8778749/

相关文章:

c# - 读取 MSMQ 事务性死信队列

c# - WCF 服务托管 Windows 服务不保存调用之间的状态

c# - SLsvcUtil.exe 代理生成的类不继承自 INotifyPropertyChanged

c# - 已处理死信队列中的 MSMQ 无效签名错误

c# - Windows 服务启动顺序导致 WCF 服务出现故障状态

msmq - NServicebus 在负载平衡环境中向 msmq 集群队列发送消息时失败

wcf - 客户端应用程序应该使用真实模型类或 DTO 对象与 WCF 服务通信吗?

c# - 在 WCF 服务中传递大量数据

c# - 使用请求 header 对 BasicHttpBinding 进行身份验证

c# - Message Queue 服务不可用