On sob, mar 08, 2003 at 05:02:08 +0100, Leszek Gawron wrote:
> Jetty on its own can be run as win32 service using this command (taken from
> jetty readme):
>
> %JETTY_HOME%\bin\JavaService -install "Jetty Java HTTP Server"
> %%JAVA_VM%\jvm.dll -Djava.class.path=%CLASSPATH% -start
> %org.mortbay.jetty.win32.Service -params ./etc/jetty.xml -stop
> %org.mortbay.jetty.win32.Service -method stopAndDestroy -out
> %./logs/jettysvc.out -err ./logs/jettysvc.err -current %JETTY_HOME%
>
> Now I see that cocoon.bat uses a custom Loader class to setup classpath and
> run Jetty server.
>
> The question is: how can I run Jetty as service using the same mechanism as
> provided in cocoon.bat?
Forgot about the reason writing to cocoon-dev instead of cocoon-users:
I think one cannot use the Loader class and install Jetty as service because
no start/stop method may be provided. Could Loader class be extended to
provide methods to explicitly start/stop the servlet container ?
ouzo
--
__
| / \ | Leszek Gawron // \\
\_\\ //_/ [EMAIL PROTECTED] _\\()//_
.'/()\'. Phone: +48(600)341118 / // \\ \
\\ // recursive: adj; see recursive | \__/ |