What are skeletons and stubs and how they are generated?
Answers were Sorted based on User's Feedback
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 |
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 |
What invokes a thread?s run() method?
what are RemoteObjects?
difference between Abstract and Interface?
Can constructors be synchronized in java?
What are JTA/JTS and how they used by client?
How a component can be placed on Windows?
What classes of exceptions may be caught by a catch clause?
Why does the option tag render selected=selected instead of just selected?
If i learn Java, what kind of applications can i create that will help Banking, Retail, Hotel, Logistics industry.
Howmany interfaces are used in RMI?
important features of java which differenciate it from c++
What are the design considerations while making a choice between using interface and abstract class?