WCF 的 netMsmqBinding 是否需要在客户端安装任何 MSMQ 包?
我想使用 WCF+MSMQ(netMsmqBinding),我想知道是否需要在客户端安装任何与 MSMQ 相关的东西,当然除了我的客户端应用程序和 .NET 框架。
I'd like to use WCF+MSMQ(netMsmqBinding) and I was wondering if I'd need to install anything MSMQ related at the client side, other than my client application and the .NET framework of-course.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,您需要在服务端和消费者端安装 MSMQ。
编辑:只是为了修饰答案 - 您需要安装 MSMQ 的原因是,当您将消息发送到另一台计算机上的队列时,真正发生的情况是您正在将消息发送到发送方计算机上的队列管理器,即向接收方机器上的队列管理器发送消息,该队列管理器正在向队列发送消息。
每个“发送”都是一个单独的逻辑操作,并且赋予了 MSMQ 持久性。
Yes you need MSMQ installed on both the service and the consumer sides.
Edit: just to embellish the answer - the reason you need MSMQ installed is that when you send a message to a queue on another machine, what is really happening is that you are sending a message to the queue manager on the senders machine, which is sending a message to the queue manager on the receivers machine, which is sending a message to the queue.
Each "send" is a single logical action and is what gives MSMQ durability.