Like what you see? Have a play with our trial version.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Setting up session replication consists of the following steps:

  1. Modifications to web.xml
  2. Modifications to server.xml
  3. Modifications to ROOT.xml

 

More information regarding Tomcat Session Replication can be found at http://tomcat.apache.org

...

Code Block
languagexml
 
<web-app>
      <distributable/>
      <!-- System Event and Debug classes -->
      <listener> 
            <listener-class>com.hof.servlet.SysSessionListener</listener-class> 
      </listener> 
 

 

To enable session replication, add the following to the ClusterManagement servlet in the web.xml file.

Code Block
languagexml
 
<init-param> 
          <param-name>SessionReplication</param-name>
          <param-value>true</param-value> 
</init-param>


Anchor
servermodification
servermodification

Modifications to server.xml

Changes need to be made to the server.xml file in the Yellowfin/appserver/conf directory.

 

Add the additional XML entry within the “<host>” XML block.

Code Block
languagexml
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>

 

The IP address “228.0.0.4” is a multicast address that session replication messages will be received on. This does not need to be modified, but a Linux/Unix server may need to register a valid multicast route to receive broadcasts on this address. This can be done by running the following command on the console:

Code Block
languagetext
sudo route add -net 224.0.0.0 netmask 224.0.0.0 dev eth0

 

This syntax may be different for different flavours of Linux or Unnis. This example uses “eth0” as the network device that will be used for this route.

...