RMI Interview Questions and Answers
Ques. Explain how to bind an object to the registry.Ans. If an object implements the java.rmi.Remote interface, an object is to be bound to registry context. Each registry context implements the Referenceable interface.
The object factory is implemented by the RegistryContextFactory which converts the registry references into the corresponding registry contexts or remote objects. To construct the registry constructs, the URL of the registry must be determined. In this way the remote objects will be bounded with registry contexts.
Is it helpful? Yes No
Most helpful rated by users: