none
WCF消息队列MSMQ如何调用服务 RRS feed

  • 问题

  • 客户端消息如何到达服务端,中间如何通信,有什么步骤?


    Frank.Xu Lei--谦卑若愚,好学若饥
    专注于.NET平台下分布式应用系统开发和企业应用系统集成
    Focus on Distributed Applications Development and EAI based on .NET
    老徐的博客:http://frank_xl.cnblogs.com
    2009年7月6日 17:13
    版主

答案

  • 你好,

    和MSMQ通信需要通过MSMQ的API。如果想了解,可以参考这本书:

    Pro MSMQ: Microsoft Message Queue Programming ISBN: 1590593464

     This book explores MSMQ so that you can initiate robust, asynchronous communication between applications. MSMQ provides three APIs to incorporate message queuing into different applications. These APIs include "C" from unmanaged C/C++ code; a COM component from VB or C++ code; and the System.Messaging namespace, which integrates MSMQ with managed C# or VB .NET applications. This is the only book on the market to cover all three APIs. Plus, this book discusses the newest features of MSMQ 3.0 (released with Windows Server 2003), and explains sending and receiving MSMQ messages on a PocketPC device.

    如果想了解深入的MSMQ协议相关的内容我就没有办法提供帮助了。因为相关文档都是非公开的。

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    2009年7月8日 7:20
    版主
  • WCF使用NetMsmqBinding来支持消息队列通信。当客户端调用服务时,客户端消息会被封装为MSMQ消息,发送懂到特定的消息队列。服务端宿主在运行转台下会,启动通道侦听器,来检测消息队列消息,如果发现对应的消息,会从队列里取出消息,使用分发器转发给对应的服务。具体的通信架构如图:

        如果宿主离线,消息会被放入队列,等待下一次宿主联机时,在执行消息分发处理,给指定的WCF服务。


    Frank.Xu Lei--谦卑若愚,好学若饥
    专注于.NET平台下分布式应用系统开发和企业应用系统集成
    Focus on Distributed Applications Development and EAI based on .NET
    老徐的博客:http://frank_xl.cnblogs.com
    2009年7月8日 12:44
    版主

全部回复

  • 你好,

    和MSMQ通信需要通过MSMQ的API。如果想了解,可以参考这本书:

    Pro MSMQ: Microsoft Message Queue Programming ISBN: 1590593464

     This book explores MSMQ so that you can initiate robust, asynchronous communication between applications. MSMQ provides three APIs to incorporate message queuing into different applications. These APIs include "C" from unmanaged C/C++ code; a COM component from VB or C++ code; and the System.Messaging namespace, which integrates MSMQ with managed C# or VB .NET applications. This is the only book on the market to cover all three APIs. Plus, this book discusses the newest features of MSMQ 3.0 (released with Windows Server 2003), and explains sending and receiving MSMQ messages on a PocketPC device.

    如果想了解深入的MSMQ协议相关的内容我就没有办法提供帮助了。因为相关文档都是非公开的。

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    2009年7月8日 7:20
    版主
  • vs2008MSdn: ms-help://MS.VSCC.v90/MS.MSDNQTR.v90.chs/wcf_con/html/62210fd8-a372-4d55-ab9b-c99827d1885e.htm
    yimao
    2009年7月8日 9:39
  • WCF使用NetMsmqBinding来支持消息队列通信。当客户端调用服务时,客户端消息会被封装为MSMQ消息,发送懂到特定的消息队列。服务端宿主在运行转台下会,启动通道侦听器,来检测消息队列消息,如果发现对应的消息,会从队列里取出消息,使用分发器转发给对应的服务。具体的通信架构如图:

        如果宿主离线,消息会被放入队列,等待下一次宿主联机时,在执行消息分发处理,给指定的WCF服务。


    Frank.Xu Lei--谦卑若愚,好学若饥
    专注于.NET平台下分布式应用系统开发和企业应用系统集成
    Focus on Distributed Applications Development and EAI based on .NET
    老徐的博客:http://frank_xl.cnblogs.com
    2009年7月8日 12:44
    版主