File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Startup Settings -> server 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 "Startup Settings -> server" Watch "Startup Settings -> server" New topic

Startup Settings -> server

Samuel Pessorrusso
Ranch Hand

Joined: Jul 21, 2005
Posts: 164

My server does not have a GUI. During startup, if some keys in 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 file.

Is that a valid approach?

Lara McCarver
Ranch Hand

Joined: Dec 09, 2003
Posts: 118
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

Joined: Jul 21, 2005
Posts: 164
I like that approach, Thanks!
I agree. Here's the link:
subject: Startup Settings -> server
jQuery in Action, 3rd edition