Saturday, 26 November 2016

Configuring FTP Adapter.

To use FTP Adapter, we need to configure the FTP adapter in the Weblogic Admin Console. The steps are as follows:


  1. Open WLS Admin Console.
  2. Click Deployments.
  3. Click FTP Adapter link.
  4. Click Configuration Tab link.
  5. Go to Outbound Connection Pools Tab.
  6. Click New.
  7. Check javax.resource.cci.ConnectionFactory.
  8. Enter the JNDI Name (This JNDI name will be used in the FTP adapter in JDev).
  9. Finish.

The JNDI that the FTP Adapter will use is defined. However, we need to set some properties on it. To set those properties:
  1. In the Outbound Connection Pools Tab, expand javax.resource.cci.ConnectionFactor.
  2. Click on the new JNDI that you created.
  3. Provide the following properties.
    1. Host
    2. Port (I used 21 and it worked)
    3.  Username
    4. Password
  4. Leave the other values with default values. No need to change any other values.
Now, we need to update the FTP Adapter to pick up these latest changes. To do that:
  1. Go to Deployments 
  2. Check FTP Adapter check box  Select table level Update button.
  3. Click Next or Finish to update.

That's all. Now, our FTP Adapter can use the JNDI to connect to the FTP server to read or write files.
Also, in the FTP Adapter, the Directory for outgoing files should point to the directory where we need to place the file on the FTP server.

No comments:

Post a Comment