On Fri, Sep 12, 2008 at 6:54 PM, Sisk, Brad <[EMAIL PROTECTED]> wrote:
> The homepage for Apache FTPServer says it "can be integrated into Spring
> (web) applications, in addition to just running embedded on a server.
> It says you just register the FTPServer class in a <beans> element in
> one of Spring's Deployment Descriptor XML files.  But there is no
> documentation on doing this.

All XML config available on the site is Spring config files. You can
thus either use the custom <server> element or set it up as a standard
<bean>.

> We need FTPServer to be run as part of a larger web or enterprise
> application, running on Glassfish server. According to the homepage,
> this is possible as long as said web or enterprise application is a
> Spring App.

That's not true, FtpServer can be embedded using the Java API
directly, without any use of Spring, or within Spring (and any other
DI framework).

> However, when I simply add a <bean> declaration to Spring's <beans>
> list, in the XML file, and place FTPServer with all the other bean
> classes for the app (WEB-INF/classes), Spring DOES successfully
> instantiate an FTPServer bean on startup---however, any attempt to log
> iinto the FTPServer from any FTP client fails. You can't even log into
> it.  It doesn't reject the login-it just times out. Never returns.
> Eventually, the entire Spring App then throws an Exception-a Stack
> overflow relating to some thread pool.

Could you possibly provide your Spring application context files and
the code you use for starting FtpServer?

/niklas

Reply via email to