【问题标题】:Files not move to directory Mule ESB with HTTP Connector文件没有移动到带有 HTTP 连接器的 Mule ESB 目录
【发布时间】:2015-03-18 22:38:34
【问题描述】:

我正在尝试将文件按原样从一个端点发送到另一个端点(例如下面的一个端点有两个流)。

文件成功导出,但未移动到备份目录。在这种情况下,他们将在超时后再次外出。一次又一次。怎么了?使用 FTP 连接器的相同配置效果最佳。

<?xml version="1.0" encoding="UTF-8"?>

<mule xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:file="http://www.mulesoft.org/schema/mule/file" 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="CE-3.5.0"
    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/file http://www.mulesoft.org/schema/mule/file/current/mule-file.xsd">
    <flow name="temptestFlow1" doc:name="temptestFlow1">
        <file:inbound-endpoint path="/Data/Input" moveToDirectory="/Data/Backup" responseTimeout="10000" doc:name="File"/>
        <logger level="INFO" doc:name="Logger"/>
        <http:outbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" method="POST" doc:name="HTTP"/>
    </flow>
    <flow name="temptestFlow2" doc:name="temptestFlow2">
        <http:inbound-endpoint exchange-pattern="one-way" host="localhost" port="8081" doc:name="HTTP"/>
        <file:outbound-endpoint path="/Data/Output" responseTimeout="10000" doc:name="File"/>
    </flow>
</mule>

【问题讨论】:

  • 你能添加你的堆栈跟踪吗?

标签: file http mule esb connector


【解决方案1】:

尝试将文件连接器配置添加到您的 mule 配置中。

 <file:connector name="myFileConnector" autoDelete="true" streaming="false" validateConnections="true"></file:connector>   

希望这会有所帮助。

【讨论】:

  • 总是乐于提供帮助。 :)
猜你喜欢
  • 1970-01-01
  • 2012-09-18
  • 1970-01-01
  • 1970-01-01
  • 2016-03-17
  • 1970-01-01
  • 1970-01-01
  • 2015-04-28
  • 1970-01-01
相关资源
最近更新 更多