Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/file/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
File 文件不移动到带有HTTP连接器的目录Mule ESB_File_Http_Mule_Esb_Connector - Fatal编程技术网

File 文件不移动到带有HTTP连接器的目录Mule ESB

File 文件不移动到带有HTTP连接器的目录Mule ESB,file,http,mule,esb,connector,File,Http,Mule,Esb,Connector,我正在尝试按原样将文件从一个端点发送到另一个端点(在下面的示例中,一个端点有两个流) 文件成功退出,但未移动到备份目录。在这种情况下,他们将在超时后再次外出。一次又一次。怎么了?FTP连接器的相同配置效果最好 <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:file="http://www.mulesoft.org/

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

文件成功退出,但未移动到备份目录。在这种情况下,他们将在超时后再次外出。一次又一次。怎么了?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>

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

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


希望这有帮助。

您能添加堆栈跟踪吗?随时乐意帮助。:)