This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI

 
khad M
Ranch Hand
Posts: 48
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am very new to RMI and so I downloaded the code from Sun tutorial on RMI and try it out. And I am stucked at the last part.
In that sun example.....
what is meant by server.
B'cas iam able to run rmiregistry.
But what is this server and where it is?

Khad M
SCJP2.0

 
Michael Morris
Ranch Hand
Posts: 3451
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Khad,
Since no one else is responding to your question, I'll take a crack at it even though I'm just a novice at RMI.
My understanding of RMI is that esentially the rmiregistry creates a ServerSocket, usually on port 1099 and waits for connections. When you make a call to Naming.rebind() (or bind()) the registry then understands how to bind your remote service (interface) to requesting clients which are then assigned a communication Socket by the RMI server (registry). The port assigned is usually the next available port. Now the remote client can make calls on your bound interface.
Basically the rmiregistry is implemeting a starndard TCP Socket protocol so you don't have to
do that yourself.
If I am mistaken on any of these points I hope some of the RMI gurus will let us both know.
Hope this helps
Michael Morris
SCJP
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic