Configure JBOSS7 server as two files for a Windows startup service with the following deployment steps:
1. First check whether to configure Java_home and jboss_home environment variables, such as Not configured on the first configuration, such as my is jboss_home=d:\jboss-as-7.1.1.final.
2. Copy the Jbosssvc.exe and Service.bat files in the attachment to the%jboss_home%\bin directory, such as my D:\jboss-as-7.1.1.Final\bin.
3. Start-〉 run-〉 input "cmd", go to the command line, adjust the directory to%jboss_home%\bin, such as "CD D:\jboss-as-7.1.1.Final\bin"
4. On the command line, enter "Service.bat install" to install the service. Tip "Service JBOSS7 installed" indicates that the installation was successful. You can start-〉 run-〉 input services.msc, go to the list of services, and view the service name is JBOSS7. Right-JBOSS7 Service-〉 Properties-〉 General tab-〉 Startup type is changed to Automatic. Since then, each time the computer is restarted, the JBOSS7 service automatically starts with the machine.
5. To unregister the JBoss service as above, use the command "Service.bat Uninstall".
6. The two files in the attachment are from http://www.jboss.org/jbossweb/downloads/jboss-native-2-0-10.html, download binaries 2.0.10-windows x86 get. JBoss is configured as Service.zip
To modify the startup content of Service.bat, modify the contents as follows:
A. Paragraphs 21–23 line modify the service name, display name, description content
Set Svcname=jboss7server
Set SVCDISP=JBOSS7
Set Svcdesc=jboss as 7.1.1.final-windows x86
B. The 27th line is commented out, with REM in front of set JAVA_OPTS=-XRS, and the reason for the line to REM set JAVA_OPTS=-XRX comment set JAVA_OPTS=-XRS is that The purpose of adding this line is to prevent the computer machine user log off when the JBoss server stopped, now commented out refers to the user log off when JBoss stopped.
C. Replace the full text with Run.bat for standalone.bat,run.log for standalone.log. This substitution is intended to redirect the standalone mode to manually start the JBoss server.
7.64-bit servers are required to re-download support for 64-bit Jbosssvc.exe, as follows: http://www.jboss.org/jbossweb/downloads/ jboss-native-2-0-10.html, download binaries 2.0.10-windows x64.
JBoss 7 configured as Windows Startup service