Re: Any simple way to make Spring auto-call start() on FtpServer when it is registered using the server tags? Follow-up, Ralph Palmer: No--the XML config

2008-10-16 Thread David Latorre
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,

Re: Any simple way to make Spring auto-call start() on FtpServer when it is registered using the server tags? Follow-up, Ralph Palmer: No--the XML config

2008-10-16 Thread Niklas Gustavsson
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

Re: FTPS List, assert secure data connection?

2008-10-16 Thread Niklas Gustavsson
On Thu, Oct 16, 2008 at 3:28 PM, Jeroen Cranendonk [EMAIL PROTECTED] wrote: We're using ftpserver as a ftps server over here :) I ran into a snag though, the customer demands all 'interesting' stuff is sent secure, so in onDownload() etc. we check if the -data- connection is secure. But

RE: FTPS List, assert secure data connection?

2008-10-16 Thread Jeroen Cranendonk
Ahh, right! So my only problem is I'm working with old code :) Ok, cheers! :) -Oorspronkelijk bericht- Van: Niklas Gustavsson [mailto:[EMAIL PROTECTED] Verzonden: Thursday, October 16, 2008 3:48 PM Aan: ftpserver-users@mina.apache.org Onderwerp: Re: FTPS List, assert secure data

Re: FTPS List, assert secure data connection?

2008-10-16 Thread David Latorre
2008/10/16 Jeroen Cranendonk [EMAIL PROTECTED] Ahh, right! So my only problem is I'm working with old code :) Ok, cheers! :) Correct me anyone if I'm wrong but if you are using isSecure methods you are not using old code so probably onBeforeCommand is already present in your version. Did

RE: FTPS List, assert secure data connection?

2008-10-16 Thread Jeroen Cranendonk
Hi! I hacked isSecure methods into the old code I use ;) Cause I'm also the one who suggested them if I'm not mistaken :D The version I use is SVN version 672016 + a few minor tweaks of my own :) The only reason for using that specific version is that it's the version that's been tested, and

Re: Any simple way to make Spring auto-call start() on FtpServer when it is registered using the server tags? Follow-up, Ralph Palmer: No--the XML config

2008-10-16 Thread Ralph
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