Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Shut down registry programmatically

 
Mandan Happy
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Geeks,
I have a scenario where in I need to start the rmi registry and then stop it from my application.I use LocateRegistry to create the registry and then I want to destroy it somehow. At present even after the application has died rmi registry continues to listen on port.How do release this resource.
Thanks in Advance
Mandan
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not an object, per se. It's a separate process running on your system. You need to tell your system to kill it. Use the Runtime object and invoke whatever command terminates it.
------------------
Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic