You might want to have a look at our examples (if you are using OSGI or a web application) or tests. Actually, in order to use Spring configuration , it would be useful if you knew a little bit about Spring :-) I haven't studied Spring framework at all so yes, at first, it might be a little hard to figure this out.
In Spring you have several classes you can use for this: In PropertyPlaceHolderTest: FileSystemXmlApplicationContext ctx = new FileSystemXmlApplicationContext( "src/test/resources/spring-config/config-property-placeholder.xml"); DefaultFtpServer server = (DefaultFtpServer) ctx.getBean("server"); Instead of FileSystemApplicationContext, you could use ClassPathXmlApplication so the spring config file can be loaded from your classpath. In SpringConfigTest: XmlBeanFactory factory = new XmlBeanFactory(new FileSystemResource( "src/test/resources/spring-config/config-spring-1.xml")); You can also use a ClassPathResource or any other Spring-provided Resource type. 2009/11/28 Peter Cai <newpt...@gmail.com>: > I found this very simple description on Apache FtpServer's document: > > Integration with Spring Framework > > Apache FtpServer uses Spring Framework to implement the configuration. That > also means that we get the added benefit of full integration with regular > Spring XML configuration. For example, you can embed the "server" element > where ever you like within you Spring configuration, and with FtpServer on > the classpath, Spring will wire up the server for you. > > Nothing else about: > > 1. Where should I put this configure file? > 2. What should the file name be? > 3. How could the application find that file? > > Do I have study Sprint's Configure Framework to know all about it? > > > -- > look to the things around you,the immediate world around you, if you are > alive,it will mean something to you ——Paul Strand >