mina-ftpserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niklas Gustavsson" <nik...@protocol7.com>
Subject Re: Configuring passive mode ports
Date Thu, 15 May 2008 11:52:25 GMT
First of all you will be able to configure them using the upcoming
Spring configuration. The current data connection configuration is a
bit messy and will be cleaned up after the Spring configuration is in
place. The reason for it being messy is due to our own limited IoC
engine. Anyways, I just did some work on this and this code should now
work for you:

        DefaultFtpServerContext context = new DefaultFtpServerContext();
        MinaListener listener = (MinaListener) context.getListener("default");
        DefaultDataConnectionConfig dc = (DefaultDataConnectionConfig)

        FtpServer server = new FtpServer(context);


On Thu, May 15, 2008 at 12:10 PM, Zorgan <lazreg@gmail.com> wrote:
> How can I configure the passive mode ports without using the
> PropertiesConfiguration class (which is no more supported, I think) ?

View raw message