• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Assignment Issue

 
Patrick McDonogh
Ranch Hand
Posts: 89
  • 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. No authentication is required for database access.



All the above text was in the URLyBirds assignment. Does this mean that the user can enter the database location in the command line or it must be done in the GUI. The reason i ask is because further down in the instructions the folowing was said :



When you submit your assignment, each part (client and server) must be executable using a command of this exact form:

java -jar <path_and_filename> [<mode>]
Your programs must not require use of command line arguments other than the single mode flag, which must 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.


Does this mean that the database location can be in an xml file called cuncertify.properties and this can be edited using the gui.

Thanks in advance for your help with the matter.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11940
210
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Patrick,

According to the second set of instructions, you cannot specify the location of the database file on the command line.

Your other solution is correct though - the database location can be stored in the properties file (XML format is not a requirement though), and would be modified through the GUI - I would recommend a JFileChooser which is pre-populated with the entry from the properties file (if set).

Regards, Andrew
 
Patrick McDonogh
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thankyou for the help mate, its just so good to get confirmation on ideas.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic