---------------------------------------------------------------------
README-service.txt, service.bat and jbosssvc.exe are part of the
'JBoss Native Windows' distribution. They are included to allow
JBoss EAP run as a Service in Windows environments.

$Id: README-service.txt 92515 2009-08-18 11:14:48Z mladen.turk@jboss.com $
---------------------------------------------------------------------
The JBoss(R)* app server is Copyright 2000-2009, Red Hat Middleware LLC
and individual contributors, and is licensed under the GNU LGPL.


How to run JBoss EAP as a Windows Service

JBoss EAP comes with Windows service executable as part of JBoss Native
that can run JBoss Enterprise Application Platform 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.


To install the JBoss Enterprise Application Platform as Windows service use
the provided service.bat batch file.

C:\> cd c:\jboss-eap-5.0\native\sbin
C:\> service.bat install

To start the JBoss Enterprise Application Platform as Windows service use
Control pannel or net start command. 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.


C:\> net start JBEAP5SVC
  The JBoss EAP 5 service is starting.
  The JBoss EAP 5 service was started successfully.


To stop the JBoss Enterprise Application Platform as Windows service use
Control pannel or net stop command.
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.


C:\> net stop JBEAP5SVC
  The JBoss EAP 5 service was stopped successfully.


To restart the JBoss Enterprise Application Platform as Windows service
use Control pannel.

To remove the JBoss Application Server as Windows service use the provided
service.bat batch file.


C:\> cd c:\jboss-eap-5.0\native\sbin
C:\> service.bat uninstall


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.

Note for Windows Server 2008 and Windows Vista users:

In case the Windows UAC is enabled make sure you run cmd.exe as
Local Administrator.
Open All Programs->Accessories, right click on Command Prompt and
select 'Run as Administrator'
This step is needed even if you are logged-in as Administrator.

