I have several services that export an RMI interface.
They suggested this by creating their own registry (with LocateRegistry.createRegistry ) and binding it there. However, this became impossible when the services were moved to run as separate applications in the same VM (Tomcat), because for some reason only one registry could be present there.
I worked on this using a central registry for all services. Even in this case, I am not interested in the role of the registry registry related to several objects, as well as its entry point. However, the central registry introduces a lot of complexity (for example, it must be started first, it must have the service interfaces that it registers).
Is there a way to return the situation where each service independently offers an entry point to its RMI interface, and when launched in the same virtual machine (which is part of the host, and not part of the design)?
source share