How to avoid endpoint suspension in wso2 esb when actual end point is down

感情迁移 提交于 2019-12-05 15:35:48

if backend endpoint fails,defualt endpoint will be suspended for 30000ms. During suspended time, synapse will not try to send further messages to suspended endpoint.But you can turnoff his behavior by specifying <initialDuration>0</initialDuration> and <maximumDuration>0</maximumDuration>

following is sample endpoint with suspension time 0

<endpoint name="Endpoint">
       <address uri="http://localhost:9000/services/SimpleStockQuoteService">
           <timeout>
               <duration>30000</duration>
               <responseAction>fault</responseAction>
           </timeout>
           <suspendOnFailure>
               <errorCodes>-1</errorCodes>
               <initialDuration>0</initialDuration>
               <progressionFactor>1.0</progressionFactor>
               <maximumDuration>0</maximumDuration>
           </suspendOnFailure>
           <markForSuspension>
               <errorCodes>-1</errorCodes>
           </markForSuspension>
       </address>
   </endpoint> 
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!