Niklas, do you have any idea on in what timeframe the ftpserver will be read for Spring configuration?
Best Curt Johansson ----Ursprungligt meddelande---- Från: [EMAIL PROTECTED] Datum: 15-05-2008 13:52 Till: <[email protected]> Ärende: Re: Configuring passive mode ports 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) listener.getDataConnectionConfig(); dc.setPassivePorts("123-134"); FtpServer server = new FtpServer(context); /niklas On Thu, May 15, 2008 at 12:10 PM, Zorgan <[EMAIL PROTECTED]> wrote: > How can I configure the passive mode ports without using the > PropertiesConfiguration class (which is no more supported, I think) ? >
