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?
Joined: Oct 24, 2002
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
Joined: Oct 18, 2003
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