File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: B&S: Close Registry