Wednesday, March 21, 2018

Start Jboss-EAP as a Windows Service


Skip to end of metadata

1. First Download  jboss-native-2.0.10-windows-x64-ssl.zip  from below link and copy the contents of bin catalog to %JBOSS_HOME%/bin.

2. Then edit  the service.bat as required.

In here i have mentioned the important parameters which require to Start and Stop the JBoss as a service. Default Values and the Values we required is mentioned side by side.4
SVCDISP - [This is the parameter to put the Service Name in Windows Sevice ]
JAVA_OPTS - [Put the required Memory parameters]

  • In the "cmdStart" section , we need to mention the BAT file which we need to call to start the JBoss. Or we can put the start command like below.
Ex:
call standalone.bat --server-config=standalone.xml < .r.lock >> C:\opt\jboss7\standalone\log\standalone.log 2>&1

  • In the "cmdStop" section, we need to call the proper shutdown command. If we keep the default value, The entire Windows server will get shutdown.

3. Create the Jboss as windows service.

After configuring the service.bat correctly, start the Command prompt as "Administrator" and execute the below command.
service.bat install  from  %JBOSS_HOME%/bin
If the command executed correctly without errors, a new Windows service create. 
All the logs related to this will create inside the BIN directory as of above config. If we want, we can change this.


No comments:

Post a Comment