Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Calling all RMI gurus......!!  RSS feed

 
Manjunath Subramanian
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi All,
How does and Stub call the Skeleton?!!
Strange question right? I faced this in an interview at HP.
I promptly asked the lady who was asked me this question
as to why would any RMI application developer would want to
know that!?.She said that knowing that was necessary
to determine the network load when numerous client's are
querying the server.That seemed possible!!
But can any one answer this question?
Thanks a Million,
Manjunath
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suppose what she was after was a simple TCP/IP-based answer. When a client stub contacts a skeleton, it must first do so by completing a socket connection to the service.
A Naming.lookup() calls acts as the ServerSocket connection at port 1099 (or whatever if this default is not used). Then the client stub opens a Socket to the server side to post any calls. The protocol of this exchange is dealt with by RMI, but the actual networking is just sockets.
Of course, I could only infer what she was after by knowing the question was intended to elicit something about "network load." Even then, I don't necessarily see how she gets from that question to a potential follow-up on determining network load.
------------------
Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide
 
Manjunath Subramanian
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Michael,
First of all, i would like to tell you that,your
book is simply fantastic!!.Probably the best book i have ever read all my life!! It's c l
Ok,Coming back to the point you mentioned,i agree with what ever you have said.But at the back of mind, i have a feeling that
the first of time the stub invokes the server through a socket
connection,it does some kind of a system level plumbing(other than the creation of sockets),which is not repeated for the subsequent calls.I am not sure of what exactly that is!!
But,I have a vague feeling that she is right!!.

Is there any way of clarifying this ?
thanks,
Manjunath
[This message has been edited by Manjunath Subramanian (edited September 11, 2001).]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!