Difference of remote and serializable
Posted by ~Ray @ 2007-11-09 17:17:51
What's the difference of a class to extends remote and the categorise to implement serializable?Are both ways can work for passing objects through RMI?
Both can be used over RMI. If the class implemented Remote and is currently exported when you go it a remote reference (stub) to the object is passed. The object stays where it is and methods can be invoked on it remotely via the compose. If the categorise extends Serializable a copy of the object is passed. Any methods invoked on the disapprove ordain be invoked on the local write.
Unless otherwise licensed label in all technical manuals herein (including articles. FAQs samples) is provided under this. [ADVERTHERE]Related article:
http://forum.java.sun.com/thread.jspa?threadID=5215526
0 Comments:
No comments have been posted yet!
|