简体   繁体   English

IIS / WAS中托管的RabbitMQ WCF服务

[英]RabbitMQ WCF service hosting in IIS/WAS

I would like to use RabbitMQ (as a replacement for MSMQ) with WCF and I'd like to host these WCF services in IIS/WAS. 我想将RabbitMQ(作为MSMQ的替代品)与WCF一起使用,并且希望将这些WCF服务托管在IIS / WAS中。 Unfortunately it seems from the documentation that accompanies the RabbitMQ .NET client library that this configuration is "untested and unsupported". 不幸的是,从RabbitMQ .NET客户端库附带的文档中看来,此配置“未经测试且不受支持”。

I'm no WCF expert, but my understanding is that the reason for this being unsupported is because the RabbitMQ WCF implementation uses a completely new transport binding element. 我不是WCF专家,但是我的理解是不支持此操作的原因是因为RabbitMQ WCF实现使用了全新的传输绑定元素。 WAS has no knowledge of this and based on my reading of this article: http://msdn.microsoft.com/en-us/magazine/cc163357.aspx would require some unmanaged software writing in order for WAS to properly setup the routing of incoming AMQP messages to the appropriate IIS application and service endpoint. WAS对此一无所知,根据我对本文的阅读: http : //msdn.microsoft.com/zh-cn/magazine/cc163357.aspx将需要编写一些非托管软件才能使WAS正确设置路由将AMQP消息传入适当的IIS应用程序和服务终结点。

I'd be grateful if anyone could confirm whether my understanding is correct and/or whether there are any alternative approaches to hosting a RabbitMQ WCF service in IIS/WAS without needing to write any unmanaged code eg perhaps a customisation of the net.tcp transport binding element? 如果有人可以确认我的理解是否正确和/或是否有其他方法可以在IIS / WAS中托管RabbitMQ WCF服务而无需编写任何非托管代码(例如,对net.tcp传输的自定义),我将不胜感激。绑定元素?

See this question: AMQP AmqpBinding IIS/WAS problems? 看到以下问题: AMQP AmqpBinding IIS / WAS问题?

A response there points to the UDP Activator sample. 那里的响应指向UDP Activator示例。 I have a similar problem. 我有一个类似的问题。 I would like to use IIS/WAS for all the benefits that AppFabric brings, and I want to allow push messaging over the MQ. 我想将IIS / WAS用于AppFabric带来的所有好处,并且希望允许通过MQ进行推送消息传递。

If I find any other options apart from writing a new AMQP activator listener I will try to document them here. 如果除了编写新的AMQP激活侦听器之外,我还有其他选择,我将尝试在此处进行记录。 Can't believe that WAS isn't ready for this. 不能相信WAS还没有为此做好准备。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM