Without any specific details, let me suggest several paths for research.
If I read you correctly, then you want something similar to DHT , but for placing and searching for objects (code + data) or service nodes, not just raw data. I do not know about such a platform, although it seems really interesting.
Java EE itself (as a specification) does not indicate, and the reference implementation does not provide an out of the box solution for distributed clustering and the fragments that I think you are looking for.
Glassfish (Java EE RI) itself uses Shoal as a clustering structure that can use either Grizzly or JGroups as the underlying communication platform.
So, in your specific case, I would look at the creation and at JGroups for group communications. Then, instead of the central registry, we rely on DHT to host the service / facility. See how existing, successful DHT-based platforms (memcached, Apache Cassandra) implement partitioning and searching, fault tolerance, and switching to another resource and simply adapt / apply them. Then you can use RMI / RPC for client-server calls (node ββservice).
Hope I make sense, and good luck! If you do this yourself, see if you can open it .;)
source share