why should our class extend UnicastRemoteObject?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   viswanath_r
Posted On:   Thursday, January 24, 2002 09:03 AM

why should our class extend UnicastRemoteObject ?
is it for the proper working of equals,toString,hashCode methods, for remote objects?

Kindly specify all the reasons.

Re: why should our class extend UnicastRemoteObject?

Posted By:   Anonymous  
Posted On:   Thursday, January 24, 2002 10:13 AM

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.export ( this );


Look at the Java API docs for more details ...




Regards,


G√ľnther.

http://www.javacoding.net

About | Sitemap | Contact