none
R2 Message Failure Concepts - WCF Adapter and Receive Port Configuration RRS feed

  • Question

  •  

    The WCF Adapters have a new checkbox on the Messaging tab of their configuration in a Receive Location  "Suspend Message on Failure".  The online help describes this as:

     

    "Specify whether to suspend the request message that fails inbound processing due to a receive pipeline failure or a routing failure.

    Default value: True"

     

    Receive Port Properties Dialog Box has a checkbox "Enable routing for failed messages"  The online help describes this as:

     

    "Select this check box to attempt to route any message that fails processing to a subscribing application (such as another receive port or orchestration schedule). Clear the check box to suspend failed messages and generate a negative acknowledgment (NACK). The default value is cleared."

     

    1. If the WCF Adapter Suspend Message on Failure is not checked and their is a failure due the reasons above, what happens to it?  Suspend Message on Failure or what..?

     

    2. Is there a relationship between "Suspend Message on Failure" and "Enable routing for failed messages"?

     

    3. What are the behaviors for the four combinations of "Suspend Message on Failure" and "Enable routing for failed messages" bening enabled/disabled?

     

    If someone can shed more light on this, it would be great.  Thanks

     

    BenW

     

     

    Thursday, September 20, 2007 3:21 PM

Answers

  • Firstly, I would recommend reading the "Using Failed Message Routing" section from the following link.

     

    http://msdn2.microsoft.com/en-us/library/aa578516.aspx

     

    Regarding the questions,

     

    When the "Suspend Message on Failure" is not checked, the message always get discarded regardless of "Enable routing of failed messages" setting.

     

    so, the combinations in case of failure

     

    1- "Suspend Message on Failure":true  "Enable routing for failed messages": true

    Error message is generated and routed if there is a subscriber to it, and gets suspended if there is no subscriber

     

    2- "Suspend Message on Failure":true  "Enable routing for failed messages": false

    Message gets suspended

     

    3- "Suspend Message on Failure":false  "Enable routing for failed messages": true/false

    Message gets discarded

     

     

    Thanks,

    Karahan

    Thursday, September 20, 2007 9:44 PM

All replies

  • Firstly, I would recommend reading the "Using Failed Message Routing" section from the following link.

     

    http://msdn2.microsoft.com/en-us/library/aa578516.aspx

     

    Regarding the questions,

     

    When the "Suspend Message on Failure" is not checked, the message always get discarded regardless of "Enable routing of failed messages" setting.

     

    so, the combinations in case of failure

     

    1- "Suspend Message on Failure":true  "Enable routing for failed messages": true

    Error message is generated and routed if there is a subscriber to it, and gets suspended if there is no subscriber

     

    2- "Suspend Message on Failure":true  "Enable routing for failed messages": false

    Message gets suspended

     

    3- "Suspend Message on Failure":false  "Enable routing for failed messages": true/false

    Message gets discarded

     

     

    Thanks,

    Karahan

    Thursday, September 20, 2007 9:44 PM
  •  

    Thanks Karahan this was very helpful.
    Friday, September 21, 2007 10:43 AM