moving state vs. behavior
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
1.)HTTPS
2.)Corba
3.)RMI
4.)JRMP
5.)IIOP
Answer: B. Corba only moves an object's state.
I dont see a difference between Corba & RMI from this perspective.
Please comment.
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
From what I understand, CORBA can move an entire object across a network connection, sorta like sending a serialized JavaBean across a network connection. In that manner, CORBA is transferring the entire state of an object, not just it's methods.
With Ur...Uhm...Eye..., RMI, you' are simply allowing an objects methods to be invoked remotely, thus obtaining access to the behavior of the object, as opposed to the state of the object.
-Cameron McKenzie
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Originally posted by Kameron McKenzie:
I'm not a CORBA expert, but I did sleep at a Holiday Inn last night.
With Ur...Uhm...Eye..., RMI, you' are simply allowing an objects methods to be invoked remotely, thus obtaining access to the behavior of the object, as opposed to the state of the object.
-Cameron McKenzie
How about a RMI object which does not implement remote interface.
An entire copy will be sent including state & behavior.
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Common Object Request Broker Architecture (CORBA)
Remote Method Invocation (RMI)
One is for sharing objects, the other is for calling method on remote objects. CORBA is saying "this is how the object looks like now" (i.e. state) whereas RMI says "you could have the object do this" (i.e. behaviour).
I don't understand what you mean by "a RMI object which does not implement remote interface" - if it does not expose an interface which could be accessed from a remote client, how can it be a RMI object?
Entia non sunt multiplicanda praeter necessitatem
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
"RMI object which does not implement remote": I mean an object which is a return parameter of a remote method. So when a client gets that object it gets that objects state as well as behaviour.
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Consider the following code:
This code deals with two classes - MyRmiClass and Integer. If I understand you correctly, Integer would what you call "RMI object which does not implement remote".
This is a "marshalled object" (java.rmi.MarshalledObject) - the object sent between JVMs. The term "RMI object" (althought the techincally correct term would be "remote object) refers to an object available for remote method invocation, and is not applied to objects used as parameters.
Suggested reading: RMI spec
2.2 Definition of Terms In the Java platform's distributed object model, a remote object is one whose methods can be invoked from another Java virtual machine, potentially on a different host. An object of this type is described by one or more remote interfaces, which are interfaces written in the Java programming language that declare the methods of the remote object.
Remote method invocation (RMI) is the action of invoking a method of a remote interface on a remote object. Most importantly, a method invocation on a remote object has the same syntax as a method invocation on a local object.
Hope this helps.
[ October 17, 2006: Message edited by: �dne Brunborg ]
Entia non sunt multiplicanda praeter necessitatem
| When I was younger I felt like a man trapped inside a woman’s body. Then I was born. My twin is a tiny ad: Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing |











