aspose file tools*
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
Author

Startup Settings -> server

Samuel Pessorrusso
Ranch Hand

Joined: Jul 21, 2005
Posts: 164
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
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: http://aspose.com/file-tools
 
subject: Startup Settings -> server
 
Similar Threads
suncertify.properties question
NX:packaging suncertify.properties
Default Properties
Using Properties File to set database path
suncertify. properties -- Network / non-networked mode