What is the difference between a stub and a skeleton?

Posted: February 28, 2012 in Java Posts
Tags: , , , , ,

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.

Advertisements
Comments
  1. Ping Borowski says:

    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. fireplace flame coloring says:

    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. elektroninen tupakka terveys says:

    You have remarked very interesting points! ps decent site.

    Like

  4. certified nursing assistant exam says:

    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

  5. music licensing deals says:

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

    Like

  6. teething toys says:

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

    Like

  7. Will Esperon says:

    I am glad to be a visitor of this pure web blog, thank you for this rare information!

    Like

  8. music licensing agencies says:

    I always was interested in this subject and stock still am, regards for posting .

    Like

  9. sanovnik beba says:

    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

  10. Buy xrumer list says:

    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

  11. cheap vacation ideas says:

    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

  12. free farmville clicker v3 download says:

    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

  13. music licensing says:

    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

  14. little dribblers basketball georgetown tx says:

    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

  15. kore dizileri izle says:

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

    Like

  16. Rosario Schlossman says:

    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

  17. seo services says:

    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

  18. breast cancer trends says:

    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

  19. four micro onde says:

    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

  20. Scrapebox says:

    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

  21. breast cancer discovery says:

    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

  22. hd televisions says:

    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

  23. credit card holder says:

    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

  24. Keep up the great work, I read few articles on this site and I conceive that your blog is rattling interesting and holds circles of wonderful information.

    Like

  25. disque dur externe pas cher says:

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

    Like

  26. hybrid cars says:

    I regard something really interesting about your website so I saved to my bookmarks .

    Like

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s