Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

properties file

 
John McParland
Ranch Hand
Posts: 92
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,

my specification (B&S) mentions a properties file;

"All configuration must be done via a GUI, and must be persistent between runs of the program. Such configuration information must be stored in a file called suncertify.properties which must be located in the current working directory."

At the moment I can only see a need for two pieces of configuration, the port to use for RMI and the database file name. Is there anything else that I should be putting in here?

Furthermore when should this configuration GUI be shown. The only time I can think of doing so is in the first run of the client and the server. Would this assumption be correct?

Regards,

John
 
Carlos Morillo
Ranch Hand
Posts: 221
Java Python Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi John,


What about hostname/IP address of the database server?
What about the database file absolute pathname?


HTH,


Carlos.
 
John McParland
Ranch Hand
Posts: 92
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the swift reply Carols.

Yes I can see database absolute path and filename being one, I'll add that. For the hostname, I currently popup a dialog each time the GUI starts requesting the hostname. Maybe this would be better done as a piece of configuration

Regards,

John
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi John,

The various required configuration settings:
  • client in standalone mode: path to database file
  • client in network mode: ip address (hostname) of server + port number
  • network server: path to database file + port number


  • For the client I used a configuration settings dialog which is shown when application is started (and before the main window is shown). It is the same dialog for both modes (alone and network), the content depends on the mode the application is running in.
    For the server I have created a seperate window, more info here.

    Kind regards,
    Roel
     
    Roberto Perillo
    Bartender
    Posts: 2271
    3
    Eclipse IDE Java Spring
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Howdy, John!

    Please take a look here. I think it might be helpful!
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic