Distributed Echo Sample - Demo for the Terracotta Distributed Executor Service

About

This application implements a simple echo message sending from master to workers.

Build Instructions

This sample application requires Maven 2 and Java 5. First download and install Maven 2. Then perform these steps:

  1. First, make sure that the tim-messaging library is fully built and installed.
  2. Next, invoke mvn package to build the application.

Detailed Run Instructions

You can start each process individually. To start each process individually:

  1. Start a TC Server:

    $ mvn tc:start

  2. Start a Master:

    $ mvn -DactiveNodes=master tc:run

  3. Start one or more Workers:

    $ mvn -DactiveNodes=worker tc:run

Sent messages will go from master to workers, then back to master.