Installation guide

94
Pramati Server 3.5 Administration Guide
Advanced Configuration
Typically a J2EE Cluster node means a ‘BOTH’ node. But a J2EE Cluster can also be configured as
a Web only cluster, EJB only cluster or a combination of Web and EJB nodes.
Setting up Web Replication and Persistence
You can set up a Web Cluster following the same procedure as shown in ‘Creating a Cluster Instance’.
Make sure that you enable the Web Container service for all the nodes. This can be done from the
individual
server_config.xml files.
Additionally, you need to add the following information in your cluster_config.xml file:
<web-cluster>
<enable>true</enable>
<web-session-persistence>
in-memory
</web-session-persistence>
<replication-on-all-nodes>
true
</replication-on-all-nodes>
<web-cluster-persist-info>
<url />
<driver />
<user />
<password />
<table-name />
</web-cluster-persist-info>
</web-cluster>
Backup nodes can be setup for a Web Cluster only when the web session persistence is set to In-
Memory and replication on all nodes is set to false. Enable the Web cluster by setting 'enabled' as
true’. There can be two kinds of Web session persistence:
In-memory Persistence
Database Persistence
When you select your Web session persistence to be in-memory, the HTTP session objects are
persisted in memory locally for nodes in the same VM and persisted through RMI calls for nodes in
different VM.
EJB - Required
Web Required -
Table 32: J2EE Cluster Node Type and required services
J2EE Node Type Web Container EJB Container