Dashboard > Terracotta Forge Labs > Home > Distributed-Cache Webcast
  Terracotta Forge Labs Log In   View a printable version of the current page.  
  Distributed-Cache Webcast
Added by Taylor Gautier, last edited by Taylor Gautier on Feb 21, 2008  (view change)
Labels: 
(None)

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://svn.terracotta.org/svn/forge/projects/labs/webcasts/dist-cache dist-cache
> 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:

> mvn exec:java

In another terminal, compile the cache from the dist-cache directory:

> mvn compile

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:

> mvn tc:run

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

Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.5 Build:#811 Jul 25, 2007) - Bug/feature request - Contact Administrators