This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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 .
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.
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.