PlinthOS is a software deployment platform that is particularly useful for conducting distributed computing on multi-core machines. Of course, you could use its computational nodes in more than one machines and even over a heterogeneous hardware infrastructure.
Plinthos is written 100% in Java. The default database for PlinthOS is MySQL but it should be trivial to use any other database (for which you have a JDBC driver).