This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes RMI question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "RMI question" Watch "RMI question" New topic
Author

RMI question

sravana reddibathini
Greenhorn

Joined: Jun 06, 2001
Posts: 26
Hi,
Can any body explain what happens in the following scenario:
A remote object say 'X' is bound to rmi registry with name 'xyz' on a host with DNS/IP 'abc/12.23.432.01'.
A client looks up for the object 'X' on the host rmi registry and obtains a reference to 'X'.
before the client can invoke methods on the obtained reference of object 'X' , it(object 'X') is unbound from rmi registry on the host.
my question is :
can the client invoke methods on the reference to 'X' , even after it is unbound from rmi registry on the host since the client already has a remote reference to 'X'?.
what happens to a remote reference when a object is unbound from rmi registry?.
is my question clear?.
any feedback is appreciated.
Thanks
Sravana .
BJ Grau
Ranch Hand

Joined: Jul 10, 2001
Posts: 234
Originally posted by sravana reddibathini:
what happens to a remote reference when a object is unbound from rmi registry?.
is my question clear?.
any feedback is appreciated.
Thanks
Sravana .

Good question. The Registry is just a means for looking up and obtaining a reference to a remote object. I don't think that maintaining the existing reference is contingent upon the object remaining bound to the Registry.
Jesse Xie
Greenhorn

Joined: Mar 06, 2003
Posts: 10
According to my experience, the client still can invoke the methods on the reference, even after the remote object is unbind from rmi registry on the host.
Of cource the remote reference is exist well on client when the remote object is unbind from rmi registry.
Individual opinion.


An old man from asia.
 
wood burning stoves
 
subject: RMI question
 
Similar Threads
RMI Server becoming unreferenced
Naming.Lookup and Rebind
RMI Registry location
rmiregistry
RMI Connection Refused after some clients connected successfully