Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

why does the server need stubs?

 
Aruna Raghavan
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am having to include the stubs on both server side and client side. Can someone tell me why the server side needs it?
RMI documentation says after Java 2.0, skeletons are not needed on the server side. So, in stead of using a skeleton, server uses the same stub as the client?
Still stupid w.r.t RMI
Aruna.
 
Sai Prasad
Ranch Hand
Posts: 560
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
RMI Registry loads the _Stub class, popultes with the serialized data from the RMI Server and sends the serialized object to the client. That is the reason to include _Stub for RMI Registry and the client.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!