Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Stubs and Skeletons

 
Atul Sawant
Ranch Hand
Posts: 304
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello...

http://java.sun.com/j2se/1.4.2/docs/guide/rmi/spec/rmi-arch2.html

Could someone please explain what stubs and skeletons are and what exactly they are used for in simple language.

Thanks!
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not an SCWCD related question. I send you to Distributed Java, where RMI is discussed.
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't do much better than the reference that you provided. That seemed to explain stubs and skeletons rather well.

Do you have some specific points that you don't understand?
 
Atul Sawant
Ranch Hand
Posts: 304
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!

Would you just try to explain them in layman's term please?

Thanks again.
[ August 13, 2007: Message edited by: Atul Sawant ]
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you mean "layman's terms".

A stub is an object that goes between the client code and the network, to give the client code the illusion that it is working with a local object.

A skeleton does a vaguely similar job between server object implementation code and the network.

Beyond that, I can't do a better general explanation than the one in the reference. If you were to indicate what specific aspects of that are causing you problems, I might be able to help.

Note, though, that distributed systems are not trivial to understand. You will have to put some work in.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic