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 happens when a thread cannot acquire a lock on an object?

0 Answers  


types of exceptions

1 Answers  


difference between sql exception class and sql warning class

1 Answers  


what is the difference between System.out.println and out.println in java

10 Answers   CTS,


what is the port number of RMI?

2 Answers  






Where does the session Object stores? If 100 users are connecting to the server. How does it recognize which session belongs to which user?

5 Answers   HCL, Mobillo Venture,


life cycle of an applet?

3 Answers  


What is the difference between RMI and Corba?

0 Answers   Infotech,


i want documentation of text file splitter & merger of advanced java

1 Answers   Infosys,


Thread life cycle?

3 Answers   TCS,


What is DTD?

3 Answers   Wipro,


What is in-memory replication?

0 Answers  


Categories