Something that I am using at work with great success is an ftp client called enterprisedt. I replaced commons-net with this new "free ftp for java" client and it is working great, check it out.
http://www.enterprisedt.com/ Thanks, Nick Vujasin ----- Original Message ---- From: David Latorre <[EMAIL PROTECTED]> To: ftpserver-users@mina.apache.org Sent: Tuesday, October 14, 2008 1:43:37 PM Subject: Re: how to client 2008/10/14 Andrea Francia <[EMAIL PROTECTED]> > 2008/10/14 David Latorre <[EMAIL PROTECTED]>: > > No, you'd use a regular FTP client to connect to the server.There're > several > > Java implementations of a FtpClient you can use. The simplest case: if > i'm > > not wrong you can use a 'ftp://' string in order to create an URL with > Java > > standard classes which will effectively connect you to the specified > > ftpserver. Apache commons net ftp client is used in FtpServer client > tests > > and it looks like a very good option(I'm using apache commons ftp myself > in > > our custom client). > > A thing that I really don't like about Apache commons net Ftp Client > is that you should uses getReply() and > FTPReply.isPositiveCompletion(reply) instead of exceptions to handle > command failures. Yeah sure that's a pain. But I haven't tested any good alternatives to commons-net. Feel free to suggest any! What I really don't like about commons-net and makes it much less usable is that it seems i cannot override the ip address returned by PASV command so I can open a data socket to the IP that I connected to (that of the control channel) instead of the IP returned by PASV. If i remember correctly, most UI-based ftp clients can do that. > > -- > Andrea Francia > http://andreafrancia.blogspot.com/ >