Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to stop the bind?

 
herbert christy
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am creating RMI application. I want the server
to have a function to connect and disconnect
from the registry. So far, no problem with
connect. But how to implement disconnecting?
I tried using unbind(), but the client can still
access to the stub. Where should I put the
unbind(), the server or client?
Thanks.
Herbert
 
Donal Lynch
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would have thought that unbinding an object in the registry doesn't stop the object being remotely available, it just makes it unavailable through the registry? To stop an object being remotely available do you not have to use something like UnicastRemoteObject.unexportObject()?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!