I did a post-grad project using JavaSpaces and prolog to do automated refactoring in Java back in the late 90's. The JavaSpaces implementation was so terrible that it was hard to get anything done. Great idea, but poor execution in Java probably killed Jini and JavaSpaces (and any hope of it going mainstream).