Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


What is the difference between a stub and a skeleton?

Answers were Sorted based on User's Feedback



What is the difference between a stub and a skeleton?..

Answer / guest

A stub is a proxy for a remote object that runs on the
client computer. A skeleton is a proxy for a remote object
that runs on the server. Stubs forward a client's remote
method invocations (and their associated arguments) to
skeletons, which forward them on to the appropriate server
objects. Skeletons return the results of server method
invocations to clients via stubs.

Is This Answer Correct ?    213 Yes 19 No

What is the difference between a stub and a skeleton?..

Answer / devarathnam c,kotagudibanda(po

Hi...
STUB: Stub is a client side proxy,the purpose of stub is
marshalling the data.
Marshalling: It is the process of converting the java code
(source code) into network oriented stream(bit-blobs stream)
SKELETON: Skeleton is a server side proxy,the purpose of
skeleton is converting the network oriented stream into
java program(human readable formate)
To generate stubs and skeletons we can use "rmic" tool in
JDK.

Is This Answer Correct ?    113 Yes 28 No

What is the difference between a stub and a skeleton?..

Answer / 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

What is the difference between a stub and a skeleton?..

Answer / k.latha

Before you can use the client and server, you must generate
the necessary stub. You
may also need to generate a skeleton. In the context of
RMI, a stub is a Java object that
resides on the client machine. Its function is to present
the same interfaces as the
remote server. Remote method calls initiated by the client
are actually directed to the
stub. The stub works with the other parts of the RMI system
to formulate a request that
is sent to the remote machine.

Is This Answer Correct ?    20 Yes 15 No

What is the difference between a stub and a skeleton?..

Answer / sandeep kumar

Stubs----> Stubs is a local representative or proxy which runs
client computer.It is also called as marshalling
means process of converting java source code into
network oriented stream.
Stubs is client side representation.

Skeleton--> It is also called as Unmarshalling means process
of converting network oriented stream in to java
program(Human readable format).
Skeleton is server side representation

Is This Answer Correct ?    8 Yes 4 No

What is the difference between a stub and a skeleton?..

Answer / vilie

*The purpose of the stub is to convert parameters into a string of bits, and message it over the network.
*The skeleton takes the message, convert it back into parameters and invokes request object in the server.
*The process of conversion can also be termed as 'marshalling' & 'unmarshalling'.

Is This Answer Correct ?    1 Yes 0 No

What is the difference between a stub and a skeleton?..

Answer / rathod bhavesh

You must Generate the necessary stub.
You May Also Need To Generate A skeleton.
In The Context Of RMI.
A stub is a java Object that resides on the client machine.
This Command Generate Two new file:
1)AddServerImpl_skel.class(Skeleton)
2)AdServerImpl_stub.class(stub)

Is This Answer Correct ?    1 Yes 0 No

What is the difference between a stub and a skeleton?..

Answer / sakshi jain

Stub: Stub is a client side proxy.
Skeleton: Skeleton is server side proxy.
The functionality of stub and skeleton is Marshalling and Demarshalling.
Marshalling : It is a process of converting the java data into byte stream.
Demarshalling: It is a process of converting the byte stream into java objects

Is This Answer Correct ?    3 Yes 3 No

What is the difference between a stub and a skeleton?..

Answer / jummi

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:

Is This Answer Correct ?    7 Yes 14 No

Post New Answer



More Advanced Java Interview Questions

What is thread deadlock? How to resolve thread deadlock?

3 Answers  


What must a class do to implement an interface?

0 Answers  


What are the types of data passing mechanisams under JMS specification?

1 Answers  


In HashTable I am storing null value..then what is the error it will show

2 Answers   GM General Motors,


How would you create a button with rounded edges?

0 Answers  






Explain the difference between object state and behavior?

0 Answers  


What are different types of layout managers in java.awt package?

3 Answers   Android, CA,


Will it be called overriding if I do not change the parameters or return type, instead throw a different exception in the method signature.

4 Answers   HeadStrong,


What is DTD?

3 Answers   Wipro,


What are the different approaches to represent an inheritance hierarchy?

0 Answers  


whats is mean by tiles in struts

2 Answers   SolutionNET,


What is the difference between the session.get() method and the session.load() method?

0 Answers  






Categories