【发布时间】:2011-12-15 17:43:04
【问题描述】:
我正在使用 Mule 3.2,并且正在将文件从一个位置移动到另一个位置。错误/问题是 Mule 不断地一次又一次地处理相同的文件并且没有删除它们。
控制台显示:
org.mule.transport.file.FileMessageReceiver: Lock obtained on file:
我的配置文件如下:
<flow name="File-FTP-Bridge">
<file:inbound-endpoint path="${outbound.input.path}"
moveToDirectory="${outbound.input.backup.path}">
<file:filename-wildcard-filter
pattern="*.msg" />
</file:inbound-endpoint>
<ftp:outbound-endpoint user="${outbound.ftp.user}"
password="${outbound.ftp.password}" host="${outbound.ftp.host}"
path="${outbound.ftp.path}" port="${outbound.ftp.port}"
outputPattern="#[header:originalFilename]">
</ftp:outbound-endpoint>
</flow>
我找不到这个问题的根本原因。提前致谢。
【问题讨论】:
-
请分享您使用的配置(显示文件连接器配置和带有文件入站和出站端点的流)。另外:确认 Mule 有权从源目录中删除。
-
我的配置文件