This component supports FTP via the Jakarta Commons Net library.
Sending files over FTP
The default behaviour of sending files over FTP is for the message content to be the text which gets written into the file. For example this example..
Error formatting macro: snippet: java.lang.IllegalArgumentException: Invalid url: must begin with a configured prefix.
will generate an XML text file on the FTP server. Here is an example of the FTP configuration on the server side.
Error formatting macro: snippet: java.lang.IllegalArgumentException: Invalid url: must begin with a configured prefix.
Using properties to specify the file name or content
You can use properties on the message to override the destination file name and content. e.g.
Error formatting macro: snippet: java.lang.IllegalArgumentException: Invalid url: must begin with a configured prefix.
You can also use pluggable Expressions to configure the file name and/or file content.
If you do not specify a file name then a unique file name is created using a prefix you can specify (the uniqueFileName property).
Error formatting macro: snippet: java.lang.IllegalArgumentException: Invalid url: must begin with a configured prefix.
Polling for files
The FTPPoller will poll the server (with an optional path) for files on the FTP server then download them, fire them into the normalised message router and then delete them from the FTP server. Here's an example of this in action.
Error formatting macro: snippet: java.lang.IllegalArgumentException: Invalid url: must begin with a configured prefix.