You can create a Window Service for the Sun Java System Application Server by using the Java CAPS Installer to run scripts that create a service after creating a successful installation.
To Create the Windows Service
"C:\JavaCAPS6\appserver\lib\appservService.exe
\"C:\JavaCAPS6\appserver\bin\asadmin.bat start-domain --user admin
--passwordfile C:\JavaCAPS6\appserver\passwordfile domain1\"
\"C:\JavaCAPS6\appserver\bin\asadmin.bat stop-domain domain1\""
start=auto DisplayName="SunJavaSystemAppServer DOMAIN1"
AS_ADMIN_ADMINPASSWORD=adminadmin
AS_ADMIN_MASTERPASSWORD=changeit
AS_ADMIN_PASSWORD=adminadmin
The output is [SC] CreateService SUCCESS.
To Start, Stop, and Delete the Windows Service Using the Example
To start the Windows Service, enter > net start DOMAIN1.
The output isThe SunJavaSystemAppServer DOMAIN1 service is starting.. and The SunJavaSystemAppServer DOMAIN1 service was started successfully.
To stop the Windows Service, enter > net stop DOMAIN1.
To delete the Windows Service, enter > sc delete DOMAIN1.