aspose file tools*
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
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: RMI question
 
Similar Threads
rmiregistry
RMI Server becoming unreferenced
RMI Connection Refused after some clients connected successfully
Naming.Lookup and Rebind
RMI Registry location