使用WCF服务收听新排队的消息

使用WCF服务收听新排队的消息

问题描述:

我的消息队列由IBM WebSphere MQ管理,我希望能够使用WCF服务来侦听新的排队消息.

My message-queue is managed by IBM WebSphere MQ and I would like to be able to listen for new enqueued messages using a WCF service.

每条新消息均应使用新消息作为参数来触发对我的服务的呼叫.

Each new message should trigger a call to my service with the new message as a parameter.

您知道如何创建和托管此类服务吗?

Do you know any way about how to create such a service and host it?

如果使用的是WebSphere MQ v701或更高版本,则可以将WebSphere MQ自定义渠道用于WCF.使用自定义渠道,您可以构建和托管服务.您可以找到更多详细信息和样本这里

If you are using WebSphere MQ v701 or above, then you can use the WebSphere MQ Custom channel for WCF. Using the custom channel you can build and host services. You can find more details and samples here

WMQ基于WCF的服务可以作为Windows服务或独立应用程序托管.它尚不能托管在IIS或Windows Application Fabric/WAS中.

WMQ WCF based service can be hosted as a Windows service or a standalone application. It does not yet have capability to be hosted in an IIS or Windows Application Fabric/WAS.