Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

B&S: Close Registry

 
Ye Lee
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Alex Belisle Turcot
Ranch Hand
Posts: 516
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic