![]() |
|
You can also setup multiple nodes as Windows Service. Setting up multiple nodes as services/daemon on Windows/Unix requires editing the files in the j2eeserver directory. Ensure that the node you want to configure as a service is created first. A normal convention followed is to append the node name to the name of the batch scripts. For example, to install a node myNode and run it as a service:
install_server_MyNode.bat for Windows. For Unix-based systems it is the pramatiserver.sh shell script.pramatiserver.sh shell script can be used to stop the daemon service using the stop switch.pramati_server_MyNode.conf.The files form a set and are required to setup or remove the services. You should have all these files available separately for different configurations of nodes. This justifies the convention of having the node name at the end of the filename.
Edit the pramati_server_MyNode.conf by changing the environment variable set.node to the name of the node you want to be installed as a service. In the batch scripts above, edit the environment variable _WRAPPER.CONF to point to the correct configuration file - in this case, pramati_server_MyNode.conf.
Here is the entry in the install service batch script: set _WRAPPER_CONF="%_APP_HOME%\j2eeserver\pramati_server_default.conf"
Note: Make sure you resolve all the conflicts that may arise due to communication ports such as the naming port, etc., before installing a new service. Also, the naming convention of appending the node name to the various files is not mandatory but recommended to avoid confusion.
| © Pramati Technologies 2007 | Runs on Pramati Server | Feedback | Legal |