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.
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.