What is the difference between a stub and a skeleton?
Answer Posted / vetrivel.k
stup: A stub for a remote object acts as a client's local
representative or proxy for the remote object. The caller
invokes a method on the local stub which is responsible for
carrying out the method call on the remote object. In RMI,
a stub for a remote object implements the same set of
remote interfaces that a remote object implements.
When a stub's method is invoked, it does the following:
1.initiates a connection with the remote JVM containing the
remote object,
2.marshals (writes and transmits) the parameters to the
remote JVM,
3.waits for the result of the method invocation,
4.unmarshals (reads) the return value or exception
returned, and
returns the value to the caller.
* The stub hides the serialization of parameters and the
network-level communication in order to present a simple
invocation mechanism to the caller.
skeleton :In the remote JVM, each remote object may have a
corresponding skeleton (in Java 2 platform-only
environments, skeletons are not required). The skeleton is
responsible for dispatching the call to the actual remote
object implementation. When a skeleton receives an incoming
method invocation it does the following:
1.unmarshals (reads) the parameters for the remote method,
2.invokes the method on the actual remote object
implementation, and
3.marshals (writes and transmits) the result (return value
or exception) to the caller.
| Is This Answer Correct ? | 50 Yes | 7 No |
Post New Answer View All Answers
When a thread blocks on i/o?
What are the design considerations while making a choice between using interface and abstract class?
Can you control when passivation occurs?
Is there a guarantee of uniqueness for entity beans?
What class is used to create Server side object ?
what are RemoteObjects?
What is difference between object state and behavior?
what are memory considerations of jsp compares to other web components?
Difference between swing and awt?
whats is mean by tiles in struts
How are the elements of a borderlayout organized?
hi friends, i have done my BE(CSE)at 2011 then i have joined one company before they asked me 50k so i paid but now they telling no project here so we r going to close like that so now i need any job i have good knowledge in core java and j2ee(jsp,servlet,jdbc) so if u know any job pl help me
Why won’t the jvm terminate when I close all the application windows?
Is the infobus client side only?
Can I use multiple html form elements with the same name?