Originally posted by Ulf Dittmer:
Machines A and B need to have FTP servers running; Java is not required, and the operating system makes no difference. The client on machine C can be implemented using the Jakarta Commons Net library, which includes an FTP client.
I don't understand what you are asking here - your program is running on C, but the file should be transferred from A to B? Either ftp the file from A to C, and from there to B, or you can open a shell on A and initiate a direct ftp to B (or vice-versa). The Net library also has rexec/rcmd/rlogin facilities for that.
[ July 29, 2005: Message edited by: Ulf Dittmer ]
Thanks Ulf,
My problem is since servers A & B are 3rd party external servers, so i cant do any changes as far as transfer is concerned. i.e. i cant transfer file from A to C and then from C to B.
So this is not the case.
Now the other option you gave was to open a shell on A and do a direct FTP to B, so the thing is can i open a shell on A from C using JAVA program.
If possible , then can i use Apache common's net library as suggested by you to open a shell on machine A as well.
Please help me out.If you have some sample code then that would be of great help to me.
Awaiting your reply.
Thanks in advance,
Saurabh