• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Startup Settings -> server

 
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

My server does not have a GUI. During startup, if some keys in suncertify.properties are missing I use a dialog to retrieve the missing information (db file path and port number).
My question is, do I need to provide a way to change the statup information ? My client GUI provides that funcionality, but server doesn't, if the use need to change the startup setting he must erase or edit the suncertify.properties file.

Is that a valid approach?

Thanks
 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From my requirements:

Your programs must not require use of command line property specifications. All configuration must be done via a GUI, and must be persistent between runs of the program.



So no, you can't require the user to edit any property files manually. BUt, the way you describe it, you already have a dialog for the Server... all you have to do is open it every time the server starts. Display all the values from the property file. The user can just press start, or he can change them first and then press start.

I was going to write a full GUI for the server, but I think I actually like this approach more because in the future, it is easy for the app to bypass the dialog and behave like a "proper" server app
 
Samuel Pessorrusso
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I like that approach, Thanks!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic