Terracotta for Spring

Events Sample Application

About

The Events sample application shows how to use Terracotta for Spring to propagate ApplicationContext events across a cluster.

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 Tomcat server nodes from the samples/spring/events directory

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

    Windows: start-tomcat1.bat
    start-tomcat2.bat

  3. View the sample Events application
    In a web browser, open the URLs http://localhost:8081/events/ and http://localhost:8082/events/.

Source Code

Browse configuration file and source code: source.html