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

What do you know about seam?

1 Answers  


what are getters and setters in Java with examples?

1 Answers   HCL, Infotech,


What restrictions are placed on the values of each case of a switch statement?

1 Answers  


What is the applet sandbox?

1 Answers  


How would you create a button with rounded edges?

1 Answers  


What are different types of controls in AWT?

11 Answers   IBM,


difference between Abstract and Interface?

2 Answers   HCL, Infotech,


Wt is the main difference between Java and Java J2EE and Advanced java?

5 Answers   Wipro,


For which statements does it make sense to use a label?

1 Answers  


What you mean by COM and DCOM?

1 Answers  


What is JTS?

1 Answers  


What is in-memory replication?

1 Answers  


Categories