The FTP gateway

The FTP gateway is an asynchronous provider that has been covered in a number of the previous exercises, albeit as an ESB-aware listener rather than as a gateway. In order to use this provider as a gateway it is simply a matter of setting the is-gateway attribute on the listener tag to true, as shown:

<ftp-listener busidref="ftpChannel" name="ftpGateway"
              is-gateway="true"/>

In addition to supporting the FTP protocol, this gateway can also target FTPS, the FTP protocol over a connection secured using SSL, and SFTP, a secure file transfer protocol which runs over SSH.

Due to the requirement for running against an external server, whether FTP, FTPS, or SFTP, and the multitude of configuration options available to each protocol, we are leaving the exploration of this gateway as an exercise for the reader.

The ESB Programmers Guide goes into detail about the options available for each protocol supported by this gateway.

Have a go hero – running the FTP gateway quickstart

Have a look at the helloworld_ftp_action quickstart. This demonstrates the usage of the FTP gateway. You will have to change the configuration so that it refers to an FTP server which is present within your organization. Please see the readme.txt file under this quickstart folder for more information.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset