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 ?    216 Yes 20 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 ?    114 Yes 29 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 ?    2 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

In a multitiered application which tier is the browser in?

10 Answers   Adobe,


what is the Scope of Final Keyword in Java?

1 Answers   HCL,


Write a program on RMI and JDBC using StoredProcedure?

1 Answers  


Which javutil classes and interfaces support event handling?

0 Answers  


What do you know about seam?

0 Answers  






how to create Calculator GUI using Gridbaglayout as like as Window Calculator??????????? (Open calculator Go-->Run-->type calc-->Enter)

1 Answers   TCS,


What is serialization and de-serialization ?

5 Answers  


What is meant by Superconductivity?

4 Answers  


Difference between sleep and suspend?

3 Answers  


What method MUST be implemented by all threads?

1 Answers  


What is the name of the state, when a thread is executing?

4 Answers  


What is MOM?

1 Answers   Wipro,


Categories