Distributed-Cache Webcast

Added by Taylor Gautier, last edited by Matthew Passell on May 22, 2009  (view change) show comment

Labels

 
(None)
Unknown macro: {import}

Labs Projects

Patterns

Master / Worker

Web Servers

Resin Support

Tools and Frameworks

JCS

Demo Code

Catalog Example

Webcasts

Distributed-Cache Webcast
Jetty Webcast
Hibernate Webcast

Experiments

Terracotta for JRuby

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