File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI Question: Is server a thread?

 
Lakshmi Priya Gopal
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I'm new to Java RMI so forgive me if this sounds too basic. What happens when I call the Registry.bind method? The documentations say that an object is created and bound to the port number specified, the object is an instance of a class, so does RMI basically create a thread for the class and makes it listen to the port for incoming connections?

I don't understand the concept of object here very well, am hoping someone could shed some light on this.

Thank you!
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well technically, for the remote object in question, the object becomes a remote object (i.e. the server) when it is exported & not when it is bound to a registry.
I will recommend to read sun RMI tutorials to understand the concepts.
 
pravin venkat
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
--> the remote node needs to referenced in one way or other and hence stored in registry with an arbiter name

--> the purpose of an object here is to provide with methods using which you
bind(bind a remote object with a name as a reference),
rebind(update binding made with a name as reference),
unbind(remove a bind with a name as reference),
lookup(peek into the registry for bindings with a name reference) and
list(display all the binding entries)
 
Pat Farrell
Rancher
Posts: 4660
5
Linux Mac OS X VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lakshmi Priya Gopal wrote:I don't understand the concept of object here very well, am hoping someone could shed some light on this.


The concept of an object here is the same as anyplace else in Java. An object is a handle to a bundle of values and methods.

Why are you starting to learn RMI? Its not a good solution to any known problem. It and CORBA were interesting experiments in the 90s, but both failed.
 
Lakshmi Priya Gopal
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pat Farrell
It is for a class project, that I need to implement using RMI. I am able to understand how it works now, after referring to documentation on the internet.
Thank you for the help guys!
 
pravin venkat
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lakshmi Priya Gopal wrote:Pat Farrell
It is for a class project, that I need to implement using RMI. I am able to understand how it works now, after referring to documentation on the internet.
Thank you for the help guys!


Well, join the club.. even i had the same for my class project.. learn them in an conceptual way.. they have less regard these days..
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic