Follow the instructions below to run Application Server as a Windows Service. This will ensure that the Application Server automatically starts whenever your computer boots.
Step 1. Stop an AS Instance
Stop the instance of WSO2 AS running by following the steps below.
1. Login to WSO2 AS.
2. Click on "Shutdown/Restart" in the left-hand menu.
3. Then under "Shutdown," click on the "Graceful Shutdown" link.
Step 2. Run the Batch File
1. Open the "CMD" prompt. (Click the "Start" -> "Run" and then type "cmd" and click "OK" to run the CMD)
2. Go to the folder where WSO2 AS is installed using the cd
command.
3. In the %AS_HOME%\bin
directory, run the install.bat
batch file.
This file will install WSO2 AS as a Windows service.
4. Once the install.bat
batch file has finished working, access the Windows Services console by selecting Start Run type "services.msc" into the field and click "OK."
5. You should see WSO2 Carbon listed as shown below.
From the "Services" window, you can either start the service from this interface or run the Management Console again.
Now you have WSO2 AS running as a Windows service.
Removing the Service
If you no longer want to run WSO2 AS as a service, follow the instructions below.
1. Click "Start" and select the "Run..." menu.
2. Type "cmd" without quotes and press "Enter."
3. Go to the folder where WSO2 AS is installed using the cd command.
4. Use uninstall.bat to remove the service completely.
This is one example that WSO2 AS integrates seamlessly in a Windows environment.