• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

RMI question

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic