• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

suncertify.properties and database location

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
They worship nothing. They say it's because nothing lasts forever. Like this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic