Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Remote transfer between two servers, transfer initiated by a third server (host)  RSS feed

Samuels John
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Code Ranchers,
I am looking for a ftp library which can handle transfer described below, [The below method is from Perl Net::FTP]

The following methods can be used to transfer files between two remote servers, providing that these two servers can connect directly to each other.

pasv_xfer ( SRC_FILE, DEST_SERVER [, DEST_FILE ] )

This method will do a file transfer between two remote ftp servers. If DEST_FILE is omitted then the leaf name of SRC_FILE will be used.

Have searched ftpclient library , apache commons net library , jsch library. Was able to find only a constant indicating the below

A constant indicating the FTP session is expecting all transfers to occur between two remote servers and that the server the client is connected to should connect to the other server's data port to initiate a data transfer.

Am new to java and not sure of how to try this .

As in perl : Way to do this is

Login to server1,serverr2 , src path , dest path and do a ftp->pasv_xfer()

Kindly help me on getting to make this work in java .

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!