TIBCO Tutorial: How to Use FTP Get Activity to Receive Remote Files

By | February 26, 2014

FTP is a protocol used to transfer files between hosts remotely connected over TCP. In TIBCO, we can write business processes for establishing FTP connections with remote hosts and transferring files from and to remote servers. In this tutorial, I will explain you step by step how you can connect to a remote ftp server in TIBCO and then get a file from the server and store it locally on your machine.

Step 1: Create FTP Connection In TIBCO:

To create a new FTP Connection in your TIBCO BW project, go to Add ResourceàFTPàFTP Connection.

In FTP Connection, specify FTP Host, Port, Username and Password. For this tutorial, I have used a ftp server of a website for which I have ftp access. You need to have an access to some FTP server to access and connect.

Once you have given all required configuration parameters to FTP connection, use Test Connection button to test if it gets connected to FTP Server successfully. As you can see in the below screenshot, my connection to FTP Server is successful.

ftp connection tibco

Step 2: Create TIBCO Process to Get Remote File Using Get FTP Activity:

After successfully establishing FTP connection, now our next step is to create a process to use this FTP connection. Create a new TIBCO Process and use Get FTP activity in the process. I have kept the process very simple by adding only Get FTP activity without using any other activities in the process. In Get FTP configuration, choose the FTP connection that we created in Step 1. In the Input of Get FTP activity, we specify the name of remote file and local file where its contents will get saved. All other parameters like Host, Port, User, Password etc. are kept empty by me as they have already been configured in FTP connection. Specifying any of these parameter values here simply overrides those configured in the FTP connection.

After configuring Get FTP activity and validating the process, process looks like below:

ftp get data

The process has been configured to get the file “iframe.txt” which is located at the FTP server and to store it at a local path with the name “received.txt”. You can see in below screenshot that file is present at FTP server to which connection has been established:

remote file on ftp server

Step 3: Test FTP Process in TIBCO

In order to test that our process correctly does its job, we load the process in TIBCO Designer tester and start it. As you can see in the screenshot below, process has run successfully.

ftp get data test

From the screenshot below, we can see that file has been generated at the specified location with the data received from FTP server.

remote file received using ftp

In the next tutorial, I will explain how we can put files to FTP server from TIBCO process.

Ajmal Abbasi

Ajmal Hussain Abbasi is a TIBCO Consultant By Profession with more than 6 years experience in TIBCO products. He has extensive practical knowledge of TIBCO Business Works, TIBCO Spotfire, TIBCO BE, EMS and TIBCO ActiveSpaces. He has worked on a number of highly critical integration projects in Telecom sector by using his skills in Tibco Designer, Adapters, TIBCO EMS, RV, Administrator, TIBCO BE, TIBCO ActiveSpaces etc. Ajmal Abbasi is also experienced in developing solutions using Oracle PL/Sql, Linux and Java. You can contact Ajmal Abbasi for Consultancy, Technical Assistance and Technical Discussions.

More Posts - Website - Facebook - LinkedIn

One thought on “TIBCO Tutorial: How to Use FTP Get Activity to Receive Remote Files

  1. Kumar

    How get multiple files though ftp get activity????and how to use Mget command in ftp palettes????


Leave a Reply

Your email address will not be published. Required fields are marked *