RMI Question:

What is PortableRemoteObject.narrow() method and what is used for?

Tweet Share WhatsApp

Answer:

Java RMI-IIOP provides a mechanism to narrow the the Object you have received from from your lookup, to the appropriate type. This is done through the javax.rmi.PortableRemoteObject class and, more specifically, using the narrow() method.

Download RMI PDF Read All 21 RMI Questions
Previous QuestionNext Question
What does the exportObject of UnicastRemoteObject do?In a RMI Client Program, what are the excpetions which might have to handled?