WSO2 Carbon and any WSO2 product can be run as a Windows service. It is also possible to install and run multiple WSO2 products as Windows services simultaneously. See the following topics for instructions:
...
- Download and unzip WSO2 ESB and WSO2 DSS.
- Download and unzip yajsw.
- Create two directories 'esb_service' and 'dss_service'.
- Copy the
<YAJSW_HOME>
directory to 'esb_service' and 'dss_service' separately. Now you will have two separate yajsw directories for the two products. Now, update the
wrapper.conf
file for each of the products, which is stored in theesb_service/<ESB_YAJSW_HOME>/conf/
anddss
_service/<DSS_YAJSW_HOME>/conf/
directories. You simply have to replacecarbon_home
withesb_home
anddss_home
respectively.- Copy the
<ESB_HOME>
directory to 'esb_service' and the<DSS_HOME>
directory to 'dss_service'. - Set port offset for DSS to '1' in the
<DSS_HOME>/repository/conf/carbon.xml
file. This will ensure that the DSS service will run on https port 9444 (default 9443 + 1). WSO2 ESB will be running on the default port 9443. - Set the ESB_HOME, DSS_HOME and JAVA_HOME environment variables, which points to the extracted folders of each service.
Now, update the
wrapper.conf
file for each of the products, which is stored in theesb_service/<ESB_YAJSW_HOME>/conf/
anddss
_service/<DSS_YAJSW_HOME>/conf/
directories. You simply have to replacecarbon_home
withesb_home
anddss_home
respectively.Note title Only applicable to ESB 4.9.0 If you are using ESB 4.9.0 version, you must add the following property to the
wrapper.conf
file:Code Block wrapper.java.additional.26 = -Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false
- Navigate to the
esb_service/<ESB_YAJSW_HOME>/bin
directory and execute the scripts as shown below.- Run
installService.bat
to install the Windows service. - Run
startService.bat
to start the service.
- Run
- Do the same above for the 'dss_service' as well.
Right click on My Computer -> Manage. Then click Services and Applications -> Services. You can see both ESB and DSS services running.
Info You can stop or restart the services from the UI as shown in the diagram above.
Alternatively, you can go to the/<YAJSW_HOME>/bin
directory for each product and execute thestopService.bat
anduninstallService.bat
scripts to stop and uninstall Windows services.You can now open the management consoles of the two products with the following urls:
- For ESB: https://localhost:9443/carbon.
- For DSS: https://localhost:9444/carbon.