dcsimg
difference between RMI and RMI-IIOP
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sriram_Sundararajan
Posted On:   Tuesday, April 1, 2003 04:47 AM

hi all

i want to know what is the difference between RMI and RMI-IIOP. In the article it is mentioned that pass by value is not possible in RMI. But in RMI-IIOP pass-by-reference and pass-by-value are possible. Why it is so?


thanks

sri

Re: difference between RMI and RMI-IIOP

Posted By:   Benoit_Quintin  
Posted On:   Tuesday, April 1, 2003 02:36 PM

Well, from The Java Tutorial

The rules governing how arguments and return values are passed are as follows.

Remote objects are essentially passed by reference. A remote object reference is a stub, which is a client-side proxy that implements the complete set of remote interfaces that the remote object implements.
Local objects are passed by copy, using object serialization. By default all fields are copied, except those that are marked static or transient. Default serialization behavior can be overridden on a class-by-class basis.
Passing an object by reference (as is done with remote objects) means that any changes made to the state of the object by remote method calls are reflected in the original remote object. When passing a remote object, only those interfaces that are remote interfaces are available to the receiver; any methods defined in the implementation class or defined in nonremote interfaces implemented by the class are not available to that receiver.

Find it here

And from http://java.sun.com

Java TM Remote Method Invocation ("Java RMI") technology run over Internet Inter-Orb Protocol ("RMI-IIOP") delivers Common Object Request Broker Architecture (CORBA) distributed computing capabilities to the JavaTM 2 platform. Java RMI over IIOP was developed by Sun and IBM

Find it here...

About | Sitemap | Contact