This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes about the stop rmi 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 » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "about the stop rmi" Watch "about the stop rmi" New topic
Author

about the stop rmi

Jofer Chan
Ranch Hand

Joined: Sep 09, 2003
Posts: 49
Hi,everyone:
Sorry my english.
in Server,
I use the Start Button to implement start rmi,
Stop Button to implement stop rmi,
when rmi is started,
how does to control the rmi Stop?
Miguel Roque
Ranch Hand

Joined: Oct 24, 2002
Posts: 126
Hi Chan.
It means that you have a GUI for the server. I personaly haven't implemented any GUI in the server. Think it for a while, the server can be a Linux box running only in text mode and this way your server doesn't work.
Make the server as a console application and don't even bother of how to stop it gracefully. Ctrl+C is enough to stop the server.
Miguel
Terry Martinson
Ranch Hand

Joined: Oct 18, 2003
Posts: 293
Jofer -
My implementation does use a server GUI so that the user can enter the needed configuration parameters. I have a start button on the panel that accepts configuration. Then I pull up a panel that just displays the config information and has a Stop Button. The Stop Button does basically as Miguel says, just stops the program (not much different than Control-C). It may eventually unbind my RMI object, but I'm not into the RMI stuff yet.
For my specs I felt a server GUI was needed to collect the config info and have it persist. However, that just depends on the specs. I know that some of the old assignments allow command line parameters while mine doesn't. If you can have command line parameters I could see not needing a server GUI.
There are some past posts on stopping the RMI server but I don't have them handy right now to include URLS. You could do a search on this forum - try "stop rmi", "stop registry", or just "registry" and you should be able to turn up something. There are also a lot of posts concerning server GUI if you look.
Good luck.
TJ


SCJP, SCJD, SCWCD, SCBCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: about the stop rmi
 
Similar Threads
B&S Passed - 381
Opening & closing remote application using java
Interesting problem with RMI server and event handling
About stop the RMI server
file change notification