What is UniCastRemoteObject and what is its use in RMI?

Answer Posted / vatsal doshi

There are many purposes for using a Unicast Remote Object

1. All the basic functionalities of RMI are actualy
implemented in this class. When we extend this class, in our
Remote class, all the RMI code gets inherited and becomes
available in our class

2. UnicastRemoteObject also implements Serializable
interface. So your subclass also automatically implements
Serializable. And thus marshalling is then supported for
your type

3. UnicastRemoteObject also prevents the methods of Object
class from being directly inheritted into the Remote class.
Thereby, preventing the 11 methods of Object class from
being invoked Remotely. methods like hashcode() need
different implementations for Remote invocations.

Is This Answer Correct ?    23 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is table mutation and how do you avoid it?

2132


What are the steps to write p-to-p model application?

2165


How would you reatach detached objects to a session when the same object has already been loaded into the session?

919


What value does readline() return when it has reached the end of a file?

833


What is local interface. How values will be passed?

761


If your ui seems to freeze periodically, what might be a likely reason?

771


Which class is the immediate superclass of the menucomponent class?

895


In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?

841


what is an isolation level?

2437


Which are the different segments of memory?

818


What is the highest-level event class of the event-delegation model?

811


What is a clone?

781


Explain what is orm?

853


Explain the steps in details to load the server object dynamically?

4775


To what value is a variable of the string type automatically initialized?

867