I wrote a blog to cluster spring app with terracotta. Here is the link
http://unserializableone.blogspot.com/2007/07/ive-heard-about-spring-for-awhile-and.html
It's ready to be run like a normal Java project in Eclipse. If you want to run with Terracotta, you need to download the plugin
.
To run 2 JVMs, modify mandelbrot.xml bean to increase the numNodes to 4. (2 nodes per VM)
Click on Attachments tab to download the source.