aspose 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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
 
Similar Threads
How to close a rmi registry with codes???
Restarting RMI Registry
RMI registry - inside or out?
Running RMI registry on ramdon port
Shut down RMI Registry