How to pass system properties when WSO2 Carbon server is running in daemon mode
When you start wso2 carbon server using a startup script such as wso2server.sh, you can simply pass system properties such as -DosgiConsole, just by passing system property in command line.
e.g:- sh wso2server.sh -DosgiConsole
However, if you start the server as a System process (daemon), how should you send those parameters?
Lets look at how we can start OsgiConsole, if we start server in daemon mode.
1. Open CARBON_HOME/repository/conf/wrapper.conf
2. Add the following parameter under Java additional properties section
wrapper.java.additional.11=-DosgiConsole=1234
wrapper.java.additional.11=-DosgiConsole=1234
3. Start the server as "sh wso2server.sh -start"
4. Open a new shell and "telnet localhost 1234"
Comments