【发布时间】:2014-05-20 19:52:04
【问题描述】:
<flow name="receive-files-from-client">
<file:inbound-endpoint connector-ref="ibFileConnector"
path="/client-data/accounts/client/ToTest">
<file:filename-wildcard-filter pattern="ABC_123*.txt, XYZ_987*.txt" />
<object-to-byte-array-transformer /> <!-- need to convert from an input stream to a byte array to avoid having the wire-tap close it -->
<wire-tap>
<file:outbound-endpoint path="${workingDdir}/Dir1/archive/inbound/#[function:datestamp-yyyy-MM-dd_HH-mm-ss.SSS]" />
</wire-tap>
</file:inbound-endpoint>
....
...
</flow>
我已经正确配置了所有内容,但是 Mule 没有从该入站路径位置选择文件。
【问题讨论】:
-
你能在日志中看到文件是没有被拾取还是被过滤掉了吗?
-
经过一些更改,Mule 正在尝试访问文件但错误是:ERROR... [[Application-1.0-SNAPSHOT].inboundFileConnector.receiver.02] org.mule.exception.DefaultSystemExceptionStrategy: ** ******* 消息:文件“CYC53_855.001234txt”不存在或无法读取代码:MULE_ERROR-6 ------------------------ ------