What are skeletons and stubs and how they are generated?

Answers were Sorted based on User's Feedback



What are skeletons and stubs and how they are generated?..

Answer / amalendra

Stub is java class that knows how to interact with
skeleton. Thus client program calls the remote method on
stub and stub in-turns call the method on skeleton, again
skeleton call the method on actual remote class.
Stub reside on cleint side where as skeleton reside on
Remote.

rmic utility can be used to generate Stub and Skeleton.

Is This Answer Correct ?    3 Yes 0 No

What are skeletons and stubs and how they are generated?..

Answer / akshay odhekar

Stub and Skeleton are two objects created by Server.To
create these two objects we give command "rmic" then
filename_stub.class is generated.
Server then gives this stub to client.also object binding
is done and registerd in rmi registry.
When Client object wants to invoke method residing in
server.
It will look in to rmi registry for avaiblity of that oject.
If binding of that object is done by server. then Client
sends parameter to server via Stub after serializing them.
Stub communicates with skeleton and method is invoked and
result is sent back to stub.all this is marshalling and
unmarshalling.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Advanced Java Interview Questions

How can I avoid validating a form before data is entered?

0 Answers  


Name three subclasses of the component class?

0 Answers  


How to implement RMI in Java?

0 Answers   TCS,


What is synchronization?

6 Answers   Verizon,


Write a java program to find out the sum of harmonic series : 1 + ½ + 1/3 + ……… up to nth term , for any value of n.

2 Answers  






I wantr to know, How many number of users logged in to website? can any one answer

7 Answers   Cap Gemini,


In RMI, inorder to sent the stub reference to the client, is we have to load the server object first into the memory or can we directly sent reference to the client?

0 Answers  


which of the following authentication is stronger than the others? a. Http Basic b. Http DIGEST c. Form based

1 Answers  


What is Remote Interface?

1 Answers  


What is serialization and de-serialization ?

5 Answers  


What is RMI Registry?

6 Answers   Siemens, United Software Solutions,


can any one tell me how to learn good coding techniques

3 Answers  


Categories