zoukankan      html  css  js  c++  java
  • Service Broker – EndDialog (http://schemas.microsoft.com/SQL/ServiceBroker/EndDialog)

    Service Broker – EndDialog (http://schemas.microsoft.com/SQL/ServiceBroker/EndDialog)

     

    There are two ways to END CONVERSATION in SSB, one is the initiator sends EndDialog message, another is the target sends EndDialog message at first.

     

    1. Target sends EndDialog message at first

    The initiator can simply send the message to the target and then continue. The target will receive the message, end the conversation from the target side and this will send an EndDialog (http://schemas.microsoft.com/SQL/ServiceBroker/EndDialog ) message back to the initiator. In this way, we can associate a stored procedure to the initiator queue, and in this stored procedure we can end the initiator side of the conversation.

     

    2. Initiator sends EndDialog message at first

    In the other hand, the initiator can open a conversation, send a message and end the conversation. This will result in a EndDialog message being send to the TO SERVICE of the dialog, and when the TO SERVICE receives the EndDialog message, it should do an END CONVERSATION.

    It’s a typical fire-and-forget message exchange pattern. The initiator does not care what will happen in the target when the message is sent out.


     ***

    The Conversation doesn't end until both the FROM and TO services call END CONVERSATION.



  • 相关阅读:
    Android中库项目、jar包等的使用方法
    rman 使用catalog备份的演示
    好端端的项目重新运行的时候却不行了!!!已解决
    动物:河蚌
    动物:田螺
    动物-鱼:鳖
    动物-鱼:鳝鱼
    动物-鱼:柳根鱼
    动物-鱼:泥鳅
    动物-鱼:刺鳅
  • 原文地址:https://www.cnblogs.com/rickie/p/683253.html
Copyright © 2011-2022 走看看