Question: why rmi registry is needed?
Answer: A remote object registry is a bootstrap naming service that is used by RMI servers on the same host to bind remote objects to names. ... The registry is typically used to locate the first remote object on which an application needs to invoke methods.