• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

suncertify.properties and database location

 
Macy
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Network Approaches:
Your choice of RMI or serialized objects will not affect your grade, but no other approach is acceptable. In either case, the program must allow the user to specify the location of the database, and it must also accept an indication that a local database is to be used, in which case, the networking must be bypassed entirely.

Deliverables
Target Platform and Execution
...
java -jar <path_and_filename> [<mode>]
Your programs must not require use of command line arguments other than the single mode flag, which muxt be supported. 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. Such configuration information must be stored in a file called suncertify.properties which must be located in the current working directory.
...

Q1: I read some previous forums.
Standalone mode: save the location of the data file.
Network server mode: save the location of the data file and the port number.
Network client mode: save the host and the port number.
Is it correct?

Q2 When first time running the standalone mode, or the network server mode; the user need to specific the location of the data file and the program will save in suncertify.properties.
When running second time, I can load the previous setting. Should I start the application automatically or still give the user an option to change it and click the "start" button?

Q3 If I called the application from c:/folder_a/ and c:/folder_b/, I will have suncertify.properties in both folders since this file save in current working directory?

Q4 Once the application is running, these properties cannot be changed until stop and restarting?

I just want to double check and make sure I understand the requirement correctly. Thanks for your help.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Meisze,
Q1: I read some previous forums.
Standalone mode: save the location of the data file.
Network server mode: save the location of the data file and the port number.
Network client mode: save the host and the port number.
Is it correct?
Yes, however you may not need to save the port number: Personally I think that having the port number configurable is a great idea, but it is not strictly a requirement of the assignment.
Q2 When first time running the standalone mode, or the network server mode; the user need to specific the location of the data file and the program will save in suncertify.properties.
When running second time, I can load the previous setting. Should I start the application automatically or still give the user an option to change it and click the "start" button?
If you start automatically the user wont have any way to change the parameters if necessary except by finding and deleting the properties file - not a very user friendly option. So I would give the user the option to change any parameters if necessary.
Q3 If I called the application from c:/folder_a/ and c:/folder_b/, I will have suncertify.properties in both folders since this file save in current working directory?
Correct.
Q4 Once the application is running, these properties cannot be changed until stop and restarting?
Correct.

Regards, Andrew
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic