jQuery in Action, 3rd edition
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
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "about the stop rmi" Watch "about the stop rmi" New topic

about the stop rmi

Jofer Chan
Ranch Hand

Joined: Sep 09, 2003
Posts: 49
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.
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.

I agree. Here's the link: http://aspose.com/file-tools
subject: about the stop rmi
It's not a secret anymore!