What does stub do on the server side ? And what is a skeleton ?
Th
Stub and skeleton both hide some complexity.
The stub hides the serialization of parameters and the network-level communication in order to present a simple invocation mechanism to the caller.
The skeleton is responsible for dispatching the call to the actual remote object implementation.
http://docs.oracle.com/javase/7/docs/platform/rmi/spec/rmi-arch2.html
http://www-itec.uni-klu.ac.at/~harald/ds2001/rmi/rmi.html