On 10/15/08, Sisk, Brad <[EMAIL PROTECTED]> wrote:
> >FtpServer is certainly registered in the Spring application context,
> >using the custom XML elements or the standard Spring elements.
> >However, as you point out, we do not support starting FtpServer using
> >the custom elements (and I don't think we should as I think it's a bad
> >idea, more on that further down). However, if using the regular Spring
> ><bean> element you could likely call start() as the init-method. I
> >haven't tried it though.
>
> So I guess that's a "no".

If you re-read what I'm saying above I do say how to do it, right?

> So you are saying ultimately, I will just call a main() method to
> construct and start FTPServer in a deployed envrironment?  That's fine,
> if so.

You removed the part of my answer where I explained how to do this in
a Java EE server, for example using a context listener.

> I can just write a shell script to call it, starting FTPServer deployed
> on the server (Glassfish).  It just seemed redundant to use Spring, if
> I'll be calling a main() method, anyway. But no big deal.

Spring is used for dependency injection (setting up the bean graph),
not for building your complete application in XML.

/niklas

Reply via email to