2016-02-28 63 views

回答

1

这一切都取决于对您提供的位置...
例如,对于下面的例子,它存储在一个名为文件夹中的应用程序的文件幂等我们在这里给出的路径: - <simple-text-file-store directory="./idempotent" />: -

<flow name="tttFlow1" > 
     <http:listener config-ref="HTTP_Listener_Configuration" path="/aaa" doc:name="HTTP"/> 
     <idempotent-message-filter idExpression="#[message:payload]" doc:name="Idempotent Message" throwOnUnaccepted="true" onUnaccepted="ValidationFailFlow"> 
      <simple-text-file-store directory="./idempotent" /> <!-- In Text file files --> 
     </idempotent-message-filter> 

     <logger message="Passed" level="INFO" doc:name="Logger"/> 
     <set-payload value="Passed" doc:name="Set Payload"/> 

     <catch-exception-strategy doc:name="Catch Exception Strategy"> 
      <set-payload value="EXCEPTION!" doc:name="Set Payload" /> 
     </catch-exception-strategy> 
    </flow> 

截图: -
enter image description here

参考: - https://docs.mulesoft.com/mule-user-guide/v/3.6/mule-object-stores

+0

嗯,好的。我正在使用Anypoint Studio,并没有看到任何地方进入目录。也许我需要为此直接使用XML?添加了Anypoint Studio配置的屏幕截图。 –