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?
ouzo
--
__
| / \ | Leszek Gawron // \\
\_\\ //_/ [EMAIL PROTECTED] _\\()//_
.'/()\'. Phone: +48(600)341118 / // \\ \
\\ // recursive: adj; see recursive | \__/ |