Installation guide
82
Pramati Server 3.5 Administration Guide
Example for creating a J2EE cluster
java -Dinstall.root=. com.pramati.NodeCreator -createj2eecluster -name my
node1,mynode2 -namingport 9191,9292 -httpport 8181,8282 -clustername myclus-
ter
The help snippet that shows up on the command shell is as follows:
Usage: java com.pramati.NodeCreator [operation] [option value] [flag]
Using NodeCreator with XMLs
You can create a node or cluster using the config-topology-standalone-template.xml and
config-topology-cluster-template.xml located at <install_dir>/server/templates/.
Using these XML templates, you can convert existing node types, create nodes for a cluster, and
configure persistence properties for the database, EJB or Web.
Converting a node type is useful if you want to convert an existing, say Standalone J2EE Server to an
EJB cluster type. To do this, open the
config-topology-cluster-template.xml:
<configuration-topology>
<!-- Valid Types - a J2EE(EJB/BOTH/WEB) Cluster or a JMS Cluster-->
<!-- SAMPLE CONFIGURATION, change node definitions as required -->
<cluster name="MyCluster" type="J2EE">
<convert-nodes>
<!-- These are nodes for conversion, the server "J2EESAS1" of the given ip in
the <source-node> tag would be converted to the cluster node type given in the
node definition. The target nodenames can be different in which case the
directories will be copied.-->
<node name="EJB1" type="EJB1-cluster" naming-port="9000" http-
port="8000">
<source-node ip="localhost" name="J2EESAS1" />
</node>
</convert-nodes>
Table 27: Description of attributes for <convert-nodes> tag
Attributes
Description
node name Name(s) of the target node. That is the node that is to be created.
type The type of the target node that is to be created.
naming-port Naming port(s) of the target node.
http-port HTTP port(s) of the target node.
source-node ip The IP of the source machine on which this node is started. The default value is local host.
name Name of the source node.