java - Mule - Retry connection with basic flow -
i have basic mule flow:
http => soap => java class
<mule xmlns:cxf="http://www.mulesoft.org/schema/mule/cxf" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework.org/schema/beans" version="ee-3.6.1" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd http://www.mulesoft.org/schema/mule/cxf http://www.mulesoft.org/schema/mule/cxf/current/mule-cxf.xsd"> <http:listener-config name="http_listener_configuration" host="0.0.0.0" port="8081" doc:name="http listener configuration"/> <flow name="test_dynamicsflow"> <http:listener config-ref="http_listener_configuration" path="/" doc:name="http"/> <cxf:jaxws-service doc:name="cxf"/> <component doc:name="java"/> </flow> </mule>
i make retrying connection soap timeout don't know if possible.
i've been looking error handling connectors:
should use these connectors or how can implement it?
you need wrap http call until-successful
scope.
example:
<until-successful objectstore-ref="objectstore" maxretries="5" secondsbetweenretries="60" > <http:request config-ref="http_request_configuration" path="submit" method="post" /> </until-successful>
reference: https://developer.mulesoft.com/docs/display/current/until+successful+scope
Comments
Post a Comment