You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ftpserver-users@mina.apache.org by Erix Yao <er...@gmail.com> on 2008/10/02 11:11:49 UTC

How to write an application for downloading the file using MINA?

I want to write an application to control the speed or users for file
downloading . At first I post this message to MINA mailing list. And someone
told me that I can try Ftp server based on MINA.
So I want to know , whether I can embed this ftp server into my web
application and have more control over the download speed or user
privileges.

Re: How to write an application for downloading the file using MINA?

Posted by Niklas Gustavsson <ni...@protocol7.com>.
On Thu, Oct 2, 2008 at 11:46 AM, Erix Yao <er...@gmail.com> wrote:
> But I don't know how to implement it.
> Can you give me some hints?
> Yes ,I mean in web container like tomcat.

There was some discussion lately on how to embed FtpServer in a web
application. In that case, the guy who did it started and stopped the
server from a context listener. Here's the thread:
http://markmail.org/search/?q=ftpserver#query:ftpserver+page:1+mid:wtlwlbgdr5xqffcu+state:results

There is existing documentation on how to embed FtpServer, a good
start might be here:
http://mina.apache.org/ftpserver/embedding-ftpserver-in-5-minutes.html

/niklas

Re: How to write an application for downloading the file using MINA?

Posted by Erix Yao <er...@gmail.com>.
But I don't know how to implement it.
Can you give me some hints?
Yes ,I mean in web container like tomcat.

2008/10/2 Niklas Gustavsson <ni...@protocol7.com>

> On Thu, Oct 2, 2008 at 11:11 AM, Erix Yao <er...@gmail.com>
> wrote:
> > I want to write an application to control the speed or users for file
> > downloading . At first I post this message to MINA mailing list. And
> someone
> > told me that I can try Ftp server based on MINA.
> > So I want to know , whether I can embed this ftp server into my web
> > application
>
> Yes, if by web application you mean something running in for example
> Tomcat.
>
> > and have more control over the download speed or user
> > privileges.
>
> Yes, with FtpServer you can provide download speed restrictions per
> user if you like.
>
> /niklas
>

Re: How to write an application for downloading the file using MINA?

Posted by Niklas Gustavsson <ni...@protocol7.com>.
On Thu, Oct 2, 2008 at 11:11 AM, Erix Yao <er...@gmail.com> wrote:
> I want to write an application to control the speed or users for file
> downloading . At first I post this message to MINA mailing list. And someone
> told me that I can try Ftp server based on MINA.
> So I want to know , whether I can embed this ftp server into my web
> application

Yes, if by web application you mean something running in for example Tomcat.

> and have more control over the download speed or user
> privileges.

Yes, with FtpServer you can provide download speed restrictions per
user if you like.

/niklas