wood burning stoves*
The moose likes Distributed Java and the fly likes Shut down registry programmatically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Shut down registry programmatically" Watch "Shut down registry programmatically" New topic
Author

Shut down registry programmatically

Mandan Happy
Ranch Hand

Joined: Dec 17, 2001
Posts: 65
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

Joined: Oct 25, 2000
Posts: 7292

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


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Shut down registry programmatically
 
Similar Threads
Who can describe with words?
what is a rmi registry and how is it usefull?
URLBirdy: RMI Question
RMI: ClassNotFoundException for STUB class
VAJ RMI classpath