Installation guide

83
CHAPTER 19
Using Pramati Server NodeCreator
If you wish to create a J2EE Cluster, locate the <create-nodes> tag in the config-topology-
cluster-template.xml:
<create-nodes>
<node name="nodename1" type="both">
<ip>localhost</ip>
<naming-port>9292</naming-port>
<http-port> 8282</http-port>
</node>
<node name="nodename2" type="both">
<ip>localhost</ip>
<naming-port>9293</naming-port>
<http-port> 8283</http-port>
</node>
</create-nodes>
To define the properties for persistence, modify the <configuration-persistence> tag in the
config-topology-cluster-template.xml:
<!-- use "db" for DB persistence -->
<configuration-persistence type="file">
<property name="driver" value=""/>
<property name="url" value=""/>
<property name="user" value=""/>
<property name="password" value=""/>
<property name="tablename" value=""/>
</configuration-persistence>
<!--the default type here is "in-memory", use "db" for DB persistence -->
<ejb-cluster-persistence >
<property name="driver" value=""/>
<property name="url" value=""/>
<property name="user" value=""/>
<property name="password" value=""/>
Table 28: Description of attributes for <create-nodes> tag to create a cluster
Attributes
Description
node name Name of the cluster node.
type The type of the cluster - EJB, Web, or BOTH.
ip The IP of the machine on which this node is being created. The default value is local host.
naming-port Naming port of the node.
http-port HTTP port of the node.