我有一個非常簡單的配置,它將文件從FTP服務器複製到文件出站。由於文件大小很大,我使用streaming
進行文件傳輸。這是我的配置:如何在使用流時關閉Mule中FTP入站端點的輸入流
<ftp:connector name="ftpConnector" streaming="true" pollingFrequency="360000"/>
<flow name="copyFTPtoFile">
<ftp:inbound-endpoint name="FTP" connector-ref="ftpConnector" host="FTP" port="21" user="test" password="test" path="/Testenv" />
<file:outbound-endpoint path="/vendor/in" />
</flow>
我不知道如何關閉input-stream
使文件從FTP服務器上刪除,一旦他們被複制。
騾應該自動爲你照顧,是不是這樣? –
不是當我在ftp連接器上有'streaming = true'時。 _。如果在入站端點上使用流式傳輸,則用戶關閉輸入流的責任。如果在出站端點上使用流式傳輸,Mule將自動關閉流式傳輸。[from this link] http://www.mulesoft.org/documentation/display/current/FTP+Transport+Reference –
它們可能是指如果您接收到流一個自定義組件。 –