I use AFD which is written by a friend of my boss. The software has lots of
options, is based on Linux, and can handle lots of failures. We use it to
transfer collected data back to our server. When the connection is broken,
the data stays at the monitor machine until it can be delivered. The file is
transferred using a '.' in front of the name and then is renamed once it is
all there. That way our system won't touch it until it is truly there and
ready to go.
I have had times when the connection was down because of networking people
doing troubleshooting for 3 days. Once the connection comes back, the data
starts flowing again. Errors are logged and the file is retried. I find it
much more reliable than anything I could come up with in Java. You can even
set up the program to archive all the data it is sending for a number of
days. This is handy for times when the server machine has problems and the
data needs to be resent so it can be imported into a database.
Robert Casto
President - CinciJava LLC
Phone: 513-755-2221
FAX: 831-307-7638
robert@xxxxxxxxxxxxx
-----Original Message-----
From: Chip Dunning [mailto:cdunning@xxxxxxxxxxxx]
Sent: Friday, July 09, 2004 11:22 AM
To: CinJUG (E-mail)
Subject: [cinjug-users] FTP
On a related message to the previous one about using a less that reliable
FTP connection - does anyone else have problems with slow or balky FTP
connections using Java.
We have an application that FTPs files to various clients (MPG/WMV about
2-5m files). When the Java application begins FTPing the file I can startup
a Command Prompt, FTP the same file to the same client, then FTP two more
files before the Java version completes sending the first file. It also
seems far more likely to timeout during the FTP process.
I know its not the multiple sends, because the time is consistent
when it is just ftping the file with no other interference.
Any ideas?
Chip
-----
"The reason the mainstream is thought of as a stream is because it's so
shallow" --George Carlin
---------
You may unsubscribe from this mailing list
by sending a blank email addressed to:
users-unsubscribe@xxxxxxxxxx
--
Find additional help by sending a blank email
addressed to:
users-help@xxxxxxxxxx
|