Well, I found out that these two links will be the most relevant sources:
- Jboss 7.1.1 as a Windows service ,
- Running JBoss AS 7 as a Windows Service
The strangest thing for me is that there are no specific native connectors in http://www.jboss.org/jbossweb/downloads/jboss-native-2-0-10.html for JBoss 7 .
Therefore, we need to change the JBoss 5 connector (the service.bat file specifically) to reflect the structural changes in the JBoss 7 version.
The updated service.bat is taken from here (all changes are shown in bold).
The changes are as follows:
- We must change the name of the service (Jboss 5 to Jboss 7)
- Switch all run.bat calls to standalone.bat calls
- Replace all shutdown calls with a new command (since there is no longer shutdown.bat! Ignoring this can cause windows to shutdown the command!)
- (Optional) Modify JAVA_OPTS.
PS Consider reading this article as another way. However, I have not tried it yet.
source share