OpenTerracotta for RIFE

Continuations Sample Application

About

The RIFE continuations sample application shows how RIFE's native Java continuations support can be clustered with OpenTerracotta to enable failover of the conversation state between web servers.

Build Instructions

This sample application ships built ready to run.  If you modify the application code, use the provided build.xml file to re-build the application with Apache Ant (ant build).

Run Instructions

  1. Start the Terracotta Server from the samples directory

    Unix: ./start-demo-server.sh
    Windows: start-demo-server.bat

  2. Start the three Tomcat server nodes from the samples/rife/continuations directory

    Unix: ./start-tomcat1.sh
    ./start-tomcat2.sh
    ./start-tomcat3.sh

    Windows: start-tomcat1.bat
    start-tomcat2.bat
    start-tomcat3.bat
  3. Start the load balancer from the samples/rife/continuations directory

    Unix: ./start-load-balancer.sh
    Windows: start-load-balancer.bat
  4. View the sample RIFE application

    In a web browser, open the URL http://localhost:8080/continuations/

Source Code

Browse configuration file and source code: source.html