Saturday, July 7, 2007

add Jboss as Windows services

download the javaservice.exe from internet.

run the following command.
%JBOSS_HOME%\bin\JavaService.exe
-install Jboss %JAVA_HOME%\jre\bin\server\jvm.dll
-Djava.class.path=%JAVA_HOME%\lib\tools.jar;%JBOSS_HOME%\bin\run.jar
-start org.jboss.Main
-params -c Application_Name -stop org.jboss.Main -method systemExit
-out %JBOSS_HOME%\log\out.log
-err %JBOSS_HOME%\log\err.log
-current %JBOSS_HOME%\bin -depends "" -manual

1 comment:

Unknown said...

nice....how bout to set jboss as service in linux??