...
Table of Contents |
---|
Prerequisites
- Install JDK 1.6 or higher and set up the the
JAVA_HOME
environment environment variable. For more information, see Installation Prerequisites. - Download and install a service wrapper library to use for running your WSO2 product as a Windows service. WSO2 recommends Yet Another Java Service Wrapper (YAJSW) version 11.03, and several WSO2 products provide a default
wrapper.conf
file in their<PRODUCT_HOME>/bin/yajsw/
directory. The instructions below describe how to set up this file.
...
The configuration file used for wrapping Java Applications by YAJSW is wrapper.conf
, which is located in the <YAJSW_HOME>/conf/
directory and in the <PRODUCT_HOME>binHOME>/bin/yajsw/
directory of many WSO2 products. Following is the minimal wrapper.conf
configuration for running a WSO2 product as a Windows service. Open your wrapper.conf
file, set its properties as follows, and save it in <YAJSW_HOME>/conf/
directory.
Info |
---|
If you want to set additional properties from an external registry at runtime, store sensitive information like usernames and passwords for connecting to the registry in a properties file and secure it with secure vault. |
...
Extract the Carbon-based product that you want to run as a Windows service, and then set the Windows environment variable variable CARBON_HOME
to to the extracted product directory location. For example, if you want to run ESB 4.5.0 as a Windows service, you would set set CARBON_HOME
to to the extracted wso2esb-4.5.0
directory.
...
Running the product in console mode
You can will now verify that YAJSW is configured correctly for running the Carbon-based product as a Windows service.
Open a Windows command prompt and go to the directory the
<YAJSW_HOME>/bat/
directory. For example:Code Block cd C:\Documents and Settings\yajsw_home\bat
Start the wrapper in console mode using the following command:
Code Block runConsole.bat
For example:
...
To install the Carbon-based product as a Windows service, execute the following command in the <YAJSW_HOME>/bat/
directory:
Code Block |
---|
installService.bat |
The console displays will display a message confirming that the WSO2CARBON service was installed.
...
Code Block |
---|
startService.bat |
The console displays will display a message confirming that the WSO2CARBON service was started.
...
Code Block |
---|
stopService.bat |
The console displays will display a message confirming that the WSO2CARBON service has stopped.
...
Code Block |
---|
uninstallService.bat |
The console displays will display a message confirming that the WSO2CARBON service was removed.
...