wcf msmq在iis 6.0中绑定
托管环境:Windows 2003 服务器
IIS:6.0
开发环境:Windows XP
IIS:5.1
场景:
客户端将一些消息推送到 MSMQ,WCF 服务将密切关注 MSMQ。一旦从 MSMQ 中提取消息,WCF 服务将进行处理,然后将数据/消息放到其他 MSMQ 上。
我们正在考虑创建一个带有 NetMSMQ 绑定的 WCF 服务。
我听说如果我们使用 IIS 6.0,我们将无法通过 MSMQ 绑定托管 WCF 服务,对吗?因此,出于这个原因,我们应该将其托管为控制台应用程序还是 Windows 服务?
谢谢
Hosting env : Windows 2003 server
IIS : 6.0
Dev env : Windows XP
IIS : 5.1
Scenario:
Client will be pushing some message into MSMQ and WCF service will be the one keeping an eye on MSMQ. Once the message is pulled from MSMQ WCF service will process and then put the data/message on to some other MSMQ.
We are thinking of creating a WCF service with NetMSMQ binding.
I have heard that if we are using IIS 6.0 we wont be able to host the WCF service with MSMQ binding, am I right? So for that reason are we supposed to host it as console app or windows service?
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是正确的 - IIS 5/6 中的托管仅适用于 HTTP 协议/绑定。如果您想使用 MSMQ,您必须自己托管它 - 在控制台应用程序或 Windows NT 服务中。
Vista/Server 2008/Win7/Server 2008R2 上的 IIS7 通过 Windows 进程激活服务 (WAS) 支持 MSMQ。
马克
That is correct - hosting in IIS 5/6 only works for HTTP protocols / bindings. If you want to use MSMQ, you'll have to host it yourself - in a console app or a Windows NT Service.
IIS7 on Vista/Server 2008/Win7/Server 2008R2 supports MSMQ through the Windows Process Activation Service (WAS).
Marc