正如您所看到的,我已经使用过,直到在流量水平和连接器成功 然而,响应并没有回到主叫方但是 重试成功执行
<until-successful objectStore-ref="objectStore" maxRetries="2"
secondsBetweenRetries="60" doc:name="Until Successful">
<flow-ref name="xml-to-servlet" doc:name="xml-to-servlet"/>
</until-successful>
<sub-flow name="xml-to-servlet" doc:name="xml-to-servlet">
<custom-transformer class="MapToTemplate" doc:name="MapToTemplate">
<spring:property name="sessionBean" ref="SessionBean"/>
</custom-transformer>
<custom-transformer class="LogTime" doc:name="Logging">
<spring:property name="state" value="SEND_TIME"/>
</custom-transformer>
<http:outbound-endpoint exchange-pattern="request-response" method="POST"
address="http://localhost:8080/Xml_Servlet_Simulator/XmlServlet"
doc:name="HTTP" responseTimeout="60000" keep-alive="true">
<set-property propertyName="eig_requestId" value="#[sessionVars.REQUEST_ID]"/>
</http:outbound-endpoint>
<custom-transformer class="LogTime" doc:name="Logging">
<spring:property name="state" value="RECIEVE_TIME"/>
</custom-transformer>
<echo-component doc:name="Echo"/>
答案 0 :(得分:0)
默认情况下,成功是异步的。因此,无论是否成功,其余的调用流都将在不等待直到成功的结果的情况下执行。
然而,您可以将其配置为同步,如此处所述:http://www.mulesoft.org/documentation/display/current/Until+Successful+Scope#UntilSuccessfulScope-SynchronousUntil-Successful