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 server....");
server.stop();
} catch (Exception e) {
System.out.println("Destroy in ftp didn't work so much");
e.printStackTrace();
}
}
