This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes B&S: Close Registry 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 "B&S: Close Registry" Watch "B&S: Close Registry" New topic
Author

B&S: Close Registry

Ye Lee
Greenhorn

Joined: Nov 03, 2006
Posts: 3
By using LocateRegistry.createRegistry(port), I can start the registry. However, I don't know how to close it. Any clue? I mean not just unbind, but close the port that the registry was listening on.

Thanks!


SCJP 1.4
Alex Belisle Turcot
Ranch Hand

Joined: Apr 26, 2005
Posts: 516
Originally posted by Ye Lee:
By using LocateRegistry.createRegistry(port), I can start the registry. However, I don't know how to close it. Any clue? I mean not just unbind, but close the port that the registry was listening on.

Thanks!


I used both Naming.unbind and UnicastRemoteObject.unexportObject!

Alex
 
GeeCON Prague 2014
 
subject: B&S: Close Registry