Hello Brad,
Actually Ralph's idea sounds great (why does it need to be a
DisposableBean, Ralph? my knowledge of Spring is = null) and it start
FtpServer automatically , no need to provide a Main class.
He builds a web application with that single file and the changes stated in
his mail (yeah,
On Thu, Oct 16, 2008 at 1:50 PM, David Latorre [EMAIL PROTECTED] wrote:
Niklas I do think that using Spring lifecycle is better than a
ContextListener. For example, with Spring it is very easy to deploy the
whole thing as a resource adapter instead of a web-application . Spring
v2
David,
I implemented DisposableBean when I added a destroy method in
FtpWrapper to stop the FTP server when Tomcat was stopped.
Again, probably a better way shrug.
Cheers,
Ralph
public void destroy() throws Exception {
try {
System.out.println(Stopping ftp