• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

about the stop rmi

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Lasagna is spaghetti flvored cake. Just like this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic