Hello: Here's my problem: I have a server A that has a file "A.txt" i need to send this file to a remote server B(on a different subnet but visible to server A) and store the result of this operation on server A. How can i do this using servlets? Any help is greatly appreciated. cheers
To tell if you can do this we need to know what (if any) services the destination machine offers. Does if have an FTP server running? NFS? SMB? Can you run a servlet on the destination machine to receive an upload? How you transfer a file depends entirely on what software is running on the destination machine.
I have a web server that is running on the desitnation system and i have access to the remote system only through the web server so i cannot use services like ftp, rlogin. I do have a servlet that is running on the remote system. Thanks
Joined: Jun 02, 2003
How can i do this without using RMI?? Any help is greatly appreciated. -Sudhakar
Joined: Jan 07, 1999
If all you want to do is to write some code which sends things to a servlet on a remote machine, you might as well use of the free APIs for that sort of thing. I usaully use httpunit - see this other recent thread for more details.