>You should be >able to set this programmatically or using the built-in spring >configuration. Here is a link to the documentation page that describes >various configuration options.
>http://mina.apache.org/ftpserver/listeners.html >Hope this helps. Ohh yes, it does help now it works when using PASV, and hungs when not.. but thats fine with me. I don't use Spring config, but embeded (I should consider using spring..): My code: private DataConnectionConfiguration customDataConfiguration(){ DataConnectionConfigurationFactory dc = new DataConnectionConfigurationFactory(); dc.setIdleTime(60); dc.setActiveEnabled(true); dc.setActiveIpCheck(true); dc.setPassiveExternalAddress("myhost.dyndns.org"); dc.setPassivePorts("3000-3500"); return dc.createDataConnectionConfiguration(); } ..... factory.setDataConnectionConfiguration(customDataConfiguration()); Thanks!
