What is UniCastRemoteObject and what is its use in RMI?
Answers were Sorted based on User's Feedback
Answer / janet
All remote objects must extend UnicastRemoteObject, which
provides functionality that is needed to make objects
available for remote machines.
|Is This Answer Correct ?||44 Yes||13 No|
Answer / 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
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|
Answer / yogesh
If you extends this class, your object will be automatically exported for RMI access.
If your class is already extending another class, or you just don't like extending from UnicastRemoteObject, you can also do the following:
UnicastRemoteObject.exportObject ( this );
|Is This Answer Correct ?||2 Yes||0 No|
Answer / tayyab ashraf
As unicast remote object contain all core functionality of RMI
so in order to get the features of RMI we should extend this class.
|Is This Answer Correct ?||2 Yes||1 No|
Answer / sarfaraz sheikh
The use of UnicastRemoteObject in RMI to create an instance
for remote services and provide activation and deactivation.
|Is This Answer Correct ?||7 Yes||8 No|
Answer / kamalakkanan
|Is This Answer Correct ?||1 Yes||6 No|
how java is os independent language ?
whats is mean by connectionpooling
Hi I have joined java course. I also want additional help from any tutorials website. Please suggest me tutorials which provides easy to understand online applet tutorials?
Thread life cycle?
is servlet,struts are threadsafe or not.please telme correct answer
What restrictions are placed on the values of each case of a switch statement?
explain session tracking. why we used it
How can I avoid validating a form before data is entered?
What is runnable?
diff between jsp include directive and jsp action include?
What is re-entrant. Is session beans reentrant. Is entity beans reentrant?
What is private static final long serialVersionUID = 1L;