On Mon, Nov 16, 2009 at 11:03 AM, Mahboob Alam Khalid <[email protected]> wrote: > I want to retrieve Ftplet from FtpServerFactory. Could you please give > the example configuration file to configure FtpServerFactory? So I can > load the factory as Bean.
Still not fully understanding what you want to do, excuse my thickness :-) Anyways, you want to use the XML configuration in an embedded application and be able to retrieve your Ftplets instances from your code. Is that correct? If so, I assume your using the Spring BeanFactory class (or a subclass) to get the FtpServer instance from your configuration file. If so, you could simply get the Ftplets from the BeanFactory. Or, if you dare using our internal API, you can get the context from DefaultFtpServer and get the Ftplets from there. FtpServerFactory is what you would use if you were not using the XML configuration, but rather used our API to configure your server. We do not currently expose the context (FtpServerContext) from the FtpServer interface, but that would be a possible improvement in future releases. /niklas
