Note that there are some explanatory texts on larger screens.

plurals
  1. POMule: How to pass File from FTP to Java class in Mule ESB?
    primarykey
    data
    text
    <p>In Mule, I am downloading files from FTP server. I want to pass all the files in this directory to my java class which should be performing actions after Download_ZIP_File in my flow. I need to perform actions like reading text files and unzip the zipped files using Java.</p> <p>There should be a Java class in my flow, for which a function call should be raised when download is complete.. Object of this class must know all the information about downloaded files.</p> <p>Can someone please help on this.? Here is my current flow;</p> <p><img src="https://i.stack.imgur.com/dDG9e.png" alt="enter image description here"></p> <p>My XML for this flow is like this;</p> <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;mule xmlns:ftp="http://www.mulesoft.org/schema/mule/ee/ftp" xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking" ... &gt; &lt;file:endpoint name="Download_File_KBB" responseTimeout="10000" doc:name="File" path="E:\csv\output"/&gt; &lt;file:connector name="Global_File_Connector" autoDelete="false" streaming="false" validateConnections="true" doc:name="File"/&gt; &lt;flow name="ftp_kbb_download_fileFlow1" doc:name="ftp_kbb_download_fileFlow1"&gt; &lt;ftp:inbound-endpoint host="${ftp.host}" port="${ftp.port}" path="${ftp.pathInbound}" user="${ftp.user}" password="${ftp.password}" responseTimeout="10000" doc:name="KBB_FTP"&gt; &lt;/ftp:inbound-endpoint&gt; &lt;logger message="KBBUsedVehiclesNoSpecTabFormat-#[server.dateTime.year]-W#[server.dateTime.weekOfYear]" level="INFO" doc:name="Logger"/&gt; &lt;file:outbound-endpoint path="${file.inboundEndpoint}" outputPattern="#[header:originalFilename]" responseTimeout="10000" doc:name="Donwload_ZIP_FILE" connector-ref="Global_File_Connector"/&gt; &lt;/flow&gt; &lt;/mule&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload