Terracotta DSO
Inventory Manager Sample Application
About
The Inventory Manager sample application shows how to use Terracotta DSO to
share and propagate changes to data structures.
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 the application from the
samples/pojo/inventory
directory.
For Unix users, since this is a console base application, it would be better if you open a
console per instance, instead of running it in the background.
Unix: ./run.sh
./run.sh
Windows: run.bat
run.bat
- View application.
In one of the Inventory Manager consoles, select a product to update, while in another
list the products to see the data replicated over across instances of the application.
- Try out failover.
Close all instances of the application and restart one to see that the data persists
across invocations.
Source Code
Browse configuration file and source code: source.html