What is the difference between a stub and a skeleton?

stup:


A stub for a remote object acts as a client’s
local representative or proxy for the remote object.
The caller invokes a method on the local stub which
is responsible for carrying out the method call on
the remote object. In RMI, a stub for a remote
object implements the same set of remote interfaces
 that a remote object implements. When a stub’s
method is invoked, it does the following:
1.initiates a connection with the remote JVM containing the remote object,
2.marshals (writes and transmits) the parameters to the remote JVM,
3.waits for the result of the method invocation,
4.unmarshals (reads) the return value or exception returned,
and returns the value to the caller.
* The stub hides the serialization of parameters and the
network-level communication in order to present a simple invocation mechanism to the caller.

skeleton :

In the remote JVM, each remote object may have a corresponding skeleton
(in Java 2 platform-only environments, skeletons are not required).
The skeleton is responsible for dispatching the call to the actual remote object implementation.
When a skeleton receives an incoming method invocation it does the following:
1.unmarshals (reads) the parameters for the remote method,
2.invokes the method on the actual remote object implementation, and
3.marshals (writes and transmits) the result (return value or exception) to the caller.

26 thoughts on “What is the difference between a stub and a skeleton?

  1. Just to follow up on the up-date of this subject matter on your web page and would want to let you know just how much I prized the time you took to publish this useful post. Inside the post, you spoke on how to truly handle this challenge with all comfort. It would be my personal pleasure to get together some more thoughts from your web site and come as much as offer other people what I have learned from you. Many thanks for your usual terrific effort.

    Like

  2. Hello there should you mind informing me know which one hosting company you’re hiring? I’ve loaded your blog in 3 totally different browsers and I must say this website loads at a faster rate then many others. Is it possible to suggest a good web hosting provider at a reasonable price? Thanks, I truly appreciate it!

    Like

  3. Thanks for another excellent post. The place else may just anyone get that type of info in such a perfect way of writing? I have a presentation next week, and I’m on the look for such information.

    Like

  4. I was looking through some of your posts on this website and I believe this internet site is rattling informative ! Retain putting up.

    Like

  5. Real great info can be found on web site. “Many complain of their memory, few of their judgment.” by Benjamin Franklin.

    Like

  6. Thanks for penning this. I really feel as though I am aware so much more about this than I did before. Your blog really brought several things to light that I never would have seriously considered before reading that. You should continue this, Is the correct most people would acknowledge youve got a skill.

    Like

  7. hi this post assist me full . .in the event you want watches males go to my web sites is extremely aid you for males watches. .thank man very good job.

    Like

  8. I have read several just right stuff here. Definitely price bookmarking for revisiting. I wonder how much effort you put to make one of these great informative site.

    Like

  9. I got what you intend, thankyou for putting up.Woh I am delighted to find this website through google. “Success is dependent on effort.” by Sophocles.

    Like

  10. I conceive other website owners should take this site as an example , very clean and great user pleasant design and style . “No act of kindness, no matter how small, is ever wasted.” by Aesop.

    Like

  11. Everyone loves what you guys tend to be up too. This type of clever work and coverage! Keep up the terrific works guys I’ve added you guys to my personal blogroll.

    Like

  12. I used to be curious about your up coming article admin actually essential this web site super amazing webpage

    Like

  13. I have to show some thanks to the writer for bailing me out of this particular situation. As a result of exploring through the the net and meeting notions that were not pleasant, I believed my life was well over. Living without the approaches to the problems you have sorted out through this article is a critical case, as well as those that could have in a wrong way affected my career if I had not noticed your site. The ability and kindness in handling all areas was precious. I don’t know what I would have done if I had not discovered such a thing like this. I can at this point relish my future. Thanks a lot so much for your expert and results-oriented help. I will not be reluctant to refer your blog post to any person who would need guidelines about this situation.

    Like

  14. I like this blog very much, Its a rattling nice billet to read and incur info. “Intimacy is what makes a marriage, not a ceremony, not a piece of paper from the state.” by Kathleen Norris.

    Like

  15. Hi! I know this is kinda off topic but I was wondering which blog platform are you using for this website? I’m getting tired of WordPress because I’ve had issues with hackers and I’m looking at options for another platform. I would be fantastic if you could point me in the direction of a good platform.

    Like

  16. wonderful points altogether, you simply won a new reader. What may you suggest about your publish that you simply made a few days ago? Any certain?

    Like

  17. I truly appreciate this post. I’ve been looking all over for this! Thank goodness I found it on Bing. You’ve made my day! Thx again! “One never goes so far as when one doesn’t know where one is going.” by Johann Wolfgang von Goethe.

    Like

  18. With havin so much content and articles do you ever run into any problems of plagorism or copyright infringement? My website has a lot of unique content I’ve either written myself or outsourced but it appears a lot of it is popping it up all over the internet without my authorization. Do you know any methods to help stop content from being ripped off? I’d definitely appreciate it.

    Like

  19. Hi, where have you understand this info can you please support this with proof or you will may say good quality reference as I yet others will definitely appreciate

    Like

  20. My brother suggested I would possibly like this blog. He was once totally right. This submit truly made my day. You cann’t consider simply how so much time I had spent for this information! Thanks!

    Like

  21. You are my inspiration, I own few web logs and often run out from brand :). “Never mistake motion for action.” by Ernest Hemingway.

    Like

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.