我已經使用了以下端點屬性,並希望它停止重試命中但仍在重試。我只想要一次命中終點,無論它是成功還是失敗。在WSO2 ESB Endpoint中停止重試
<endpoint name="DecisionGatewayProxy_EPR">
<address uri="http://XXXX:8280/soap/XXXX">
<timeout>
<duration>20000</duration>
<responseAction>fault</responseAction>
</timeout>
<markForSuspension>
<errorCodes>101504, 101505</errorCodes>
<retriesBeforeSuspension>0</retriesBeforeSuspension>
<retryDelay>1</retryDelay>
</markForSuspension>
<suspendOnFailure>
<errorCodes>101500, 101501, 101506, 101507, 101508</errorCodes>
<initialDuration>20000</initialDuration>
<progressionFactor>0.0</progressionFactor>
</suspendOnFailure>
</address>
</endpoint>
感謝您發表評論,真的很感激。你可以讓我知道如何發送202狀態,以便它不會重試嗎? –
當沒有任何改變時,你可以編寫http服務器返回202。 – richard