Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any simple Java FTP Server libraries that is embeddable?

Tags:

java

ftp

I've tried Apache FTP Server but it lacks document and support.

And it's totally based on spring configuration framework which I don't think I could understand very quickly.

What I want is just

  1. a simple FTP Server that could I could embed into my application
  2. I could handle "download" commands using my own code, sending some data from database instead of from static files.

Any suggestion?

like image 848
ablmf Avatar asked Nov 28 '09 12:11

ablmf


1 Answers

The Apache folks are very good with stuff like Web servers, and that would be the first place I'd look for something like that. Their documentation looks plenty adequate to me. I'm not a big fan of Spring but if they tell me what to put in which XML file I can handle it. Thus, my first recommendation would be to ask you to reconsider your aversion against the Apache FTP server.

<update> To help ablmf and provide a more authoritative answer, I downloaded Apache FTP Server and got it working almost right away without having to change anything. More info in Juha's answer and in my answer to ablmf's other question. </update>

That said, I stumbled across a product from 2001 called jftpd that may satisfy your needs. It appears to be intentionally very simple-minded, so hopefully you can extend it to your needs. However, it doesn't look like documentation is its strong suit.

More modern is Colorado FTP, for which I find updates as late as April 2008. Looks like a very well thought out implementation. There is a manual in their wiki but it doesn't approach the quality of Apache's. They provide several builds, some ready-built and some where you have to dive in yourself to some extent.

like image 156
Carl Smotricz Avatar answered Sep 22 '22 20:09

Carl Smotricz