Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Server window?

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My remote server is now just a command line program. Do you think it would be nice to have some kind of server window which tells that server is running? It would be nicer to close the server window than to type Control-C.
Jukka
 
Stephane Weber
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would certainly be nicer. But is not mandatory, and in fact a lot of people here just kept the command-line version of a server.
So, it really depends whether you feel confortable enough that you will develop a server GUI that makes it more user-friendly ...
Hope this helps
Stephane
 
Pete Lyons
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I left my server command line only just because that is the industry standard for most of the server software I've come across. Remember that this will run as a background daemon, and if you write it well, the administrator will rarely if ever think about it. I'm sure either way is fine, but having to have a window visible (which can atually cause problems on headless servers) in order to run the server seems very odd. If anything, the slickest thing to do would be to have your server GUI communicate with a separate process so you could start the server, monitor it's state, but then close the GUI and leave the server running, and then later start up the GUI and shut down the server.
 
Juan Ec
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i've provided a simply jframe with a 'block database' button (to check that issue), a 'close' button and a jlabel with the number of active connections. all in a simply class (no mvc separation at all) as the efforce for it was minimun
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you all for your valuable advice.
Jukka
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic