Installation guide

101
Chapter 21
Configuring Message Server Cluster Using XML
<service name="WebContainer" enabled="false"
class-name="com.pramati.web.WebServer">
<service name="EJBContainer" enabled="false"
class-name="com.pramati.ejb.EJBContainer">
<service name="JMSService" enabled="true"
class-name="com.pramati.jms.server.PramatiMessageService">
3 Enable Cluster service.
<service name="ClusterService" enabled="true"
class-name="com.pramati.cluster.PramatiClusterService">
4 Setup persistence.
5 Setup cluster topology in cluster-config.xml.
Note: Make sure the node types mentioned in the node definitions in cluster-config.xml are only of the type
jms-cluster.
A sample node configuration for a Message Server cluster:
<node>
<name>node</name>
<computer-name>jms1</computer-name>
<naming-port>2099</naming-port>
<node-type>jms-cluster</node-type>
<node-id>001</node-id>
</node>
The above snippet is from cluster-config.xml.
Note: A Message Server Cluster cannot have a Web/EJB node. Hence make sure that the Web/EJB
container services are disabled for all the Message Server nodes.
Starting Message Server node from Command line
To run any command using the command line, you must first run the setup.bat or setup.sh in
the /bin directory. Enter the following at the command prompt to start the Message Server node:
runserver -node [node_name]
To connect to the node, type http://<IP>:<naming port>/admin. The Console page appears.