Installing JBoss As Windows Service

Posted by

JBoss Web comes with Windows service executable that can run JBoss Web Server as service.
The service executable jbosssvc.exe transforms the run.bat and shutdown.bat batch scripts to services. This means that any change made to those scripts will be used both in service and command line mode. 

Installing service

To install the JBoss Web server as Windows service use the provided service.bat batch file
Change directory to the JBossWeb bin directory
C:\> cd c:\jbossweb-4.0.4RC1-windows-i586\bin
Install the service
C:\> service.bat install

Starting the service

To start the JBoss Web server as Windows service use Control pannel or net start command.
Start the service
C:\> net start JBossWebServer
The JBoss Web Server 4 service is starting.
The JBoss Web Server 4 service was started successfully.
When running in service mode the console output is redirected to the file run.log. You can inspect the file for any errors during service startup.

Stopping the service

To stop the JBoss Web server as Windows service use Control pannel or net stop command.
Stop the service
C:\> net stop JBossWebServer
The JBoss Web Server 4 service was stopped successfully.
When running in service mode the console output is redirected to the file shutdown.log. You can inspect the file for any errors during service shutdown.

Stopping the service

To restart the JBoss Web server as Windows service use Control pannel.

Removing the service

To remove the JBoss Web server as Windows service use the provided service.bat batch file.
Change directory to the JBossWeb bin directory
C:\> cd c:\jbossweb-4.0.4RC1-windows-i586\bin
Remove the service
C:\> service.bat uninstall

Customization of the service


Service customization is done by editing the service.bat script. Each command has a separate section that you can customize. The most common customization task would be changing service names if more then one service instances per box are required.


FOLLOW and JOIN to Get Update!

Social Media Widget SM Widgets




sisiLab Updated at: 5:11:00 PM

0 comments:

Post a Comment

Follow us on Twitter