Monday, November 2, 2009

JBoss As Windows Service

The following files are mandatory for running JBoss as Windows Service.

1) Wrapper.exe

2) Wrapper.DLL

3) Wrapper.jar

4) wrapper.conf

We can download the wrapper files from the following URL.
  http://wrapper.tanukisoftware.org/doc/english/download.jsp


Steps to run JBoss as Windows Service : 1) Copy Wrapper.exe %JBOSS_HOME%\bin\Wrapper.exe2) Copy Wrapper.DLL %JBOSS_HOME%\lib\Wrapper.DLL3) Copy wrapper.jar %JBOSS_HOME%\lib\wrapper.jar4) mkdir %JBOSS_HOME%\server\messaging\wrapper5) Copy wrapper.conf %JBOSS_HOME%\server\messaging\wrapper\wrapper.conf

Test the service:

cd %JBOSS_HOME%\bin\

wrapper.exe -c %JBOSS_HOME%\server\messaging\wrapper\wrapper.conf

Install the service:

cd %JBOSS_HOME%\bin\wrapper.exe -i %JBOSS_HOME%\server\YOURCONFIG\wrapper\wrapper.conf

Uninstall the service:

cd %JBOSS_HOME%\bin\wrapper.exe -r %JBOSS_HOME%\server\YOURCONFIG\wrapper\wrapper.conf