To Create the Windows Service
C:\WINDOWS\system32\sc.exe create DOMAIN1 binPath= "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"
Contents of C:\JavaCAPS6\appserver\passwordfile:
AS_ADMIN_ADMINPASSWORD=adminadmin
AS_ADMIN_MASTERPASSWORD=changeit
AS_ADMIN_PASSWORD=adminadmin
To Start, Stop, and Delete the Windows Service Using the Example
* To start the Windows Service, enter > net start DOMAIN1.
* To stop the Windows Service, enter > net stop DOMAIN1.
* To delete the Windows Service, enter > sc delete DOMAIN1.Labels: jcaps 5, service, windows service |