There is a good tool for Clustering like Terracotta DSO at the virtual machine level.
Terracotta DSO is an open source technology created by Terracotta, meant to provide clustering to Java at the virtual machine level. It does so by weaving code around specific classes, which will communicate with a specific server process to retrieve and update data as needed. This article walks through getting one's feet wet with DSO.