Overview
Distributed Cache Webcast contains a sample application that implements a Distributed Cache using Terracotta.
The application demonstrates the use of:
- a HashMap
- EHCache
- JBoss TreeCache
as distributed caches.
Description
Powerpoint slides and code that demonstrate how to use Terracotta to implement a Distributed Cache.
You can view the slides here »
Dependencies
You'll need the following projects:
Instructions
First, check out the code and cd into the directory:
> svn co http:> cd dist-cache
Start the quote service, included in the project: cd to the service directory, build and install:
> cd service
> mvn install
Start the service:
In another terminal, compile the cache from the dist-cache directory:
To run as a typical java, run with the -Dport value:
> mvn exec:java -Dport=8080 &
> mvn exec:java -Dport=8081 &
To run with Terracotta enabled:
This will automatically default to port 8080 & 8081
Access the application on localhost: http://localhost:8080/webapp
 |
Valid quotes you can get from this demo are: GOOG & AAPL |
Webcast
You can view the webcast here »
Public Source Repository
SVN: http://svn.terracotta.org/svn/forge/projects/labs/webcasts/dist-cache
Private Source Repository (for committers)
SVN: https://svn.terracotta.org/repo/forge/projects/labs/webcasts/dist-cache