Terracotta DSO
Shared Graphics Editor Sample Application
About
The Shared Graphics Editor sample application shows how to use Terracotta DSO
to transform a single user drawing tool into a multi-person drawing tool where
all users share a common drawing canvas.
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
The command-line steps below for executing scripts on Windows can be replaced
by double-clicking the script instead.
- Start a Terracotta server from the
samples
directory.
Unix: ./start-demo-server.sh
Windows: start-demo-server.bat
- Start multiple copies of application from the
samples/pojo/sharededitor
directory.
Unix: ./run.sh &
./run.sh &
Windows: run.bat
run.bat
- View application.
In one of the Shared Graphics Editors, draw a square and see the
square replicated across all views of the data. Try drawing
an object with an image texture and resizing the object.
DSO's fine-grain replication only sends over fields that have
changed instead of the entire object.
- Try out failover.
Close all the Graphics Editors and restart one to see that the data
persists across invocations of the client.
Source Code
Browse configuration file and source code: source.html