Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI question

 
sravana reddibathini
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic