Red Hat Training

A Red Hat training course is available for JBoss Enterprise SOA Platform

13.8.10. NotifyFTPList

Class NotifyFTPList
Purpose
NotifyFTPList extends NotifyFTP and adds the ability to take a single file name or list of file names located in the ESB Message object.
The file(s) in the Message payload should contain a list of files (full paths). This list will be iterated over and every file in the list will be sent to the configured destination FTP server directory if the "listFiles" property is false. If "listFiles" is true, the file(s) are read line by line, with each line containing the name of a file to be transferred.
So, you can supply:
  1. A single file to be transferred. (single String payload with listFiles = false)
  2. A list of files to be transferred. (List<String> payload with listFiles = false)
  3. A single list file of files to be transferred. (single String payload with listFiles = true)
  4. A list of list files of files to be transferred. (List<String> payload with listFiles = true)
Attributes None.
Child FTP.
Child Attributes
  • URL – a valid FTP URL
  • filename – the name of the file to contain the ESB message content on the remote system
  • listFiles – true if the file(s) named in the message payload is/are list file(s), otherwise false. Default is false.
  • deleteListFile – true if the list file is to be deleted, otherwise false. Default is false.
<target class="NotifyFTPList">
    <ftp URL="ftp://username:password@localhost/outputdir"
        filename="{org.jboss.soa.esb.gateway.file}">
        listFiles="true"
        deletelistFile="true"
</target>