wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Assignment Issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Assignment Issue" Watch "Assignment Issue" New topic
Author

Assignment Issue

Patrick McDonogh
Ranch Hand

Joined: Oct 13, 2005
Posts: 89

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

Joined: Mar 28, 2003
Posts: 11404
    
  81

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


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Patrick McDonogh
Ranch Hand

Joined: Oct 13, 2005
Posts: 89
Thankyou for the help mate, its just so good to get confirmation on ideas.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Assignment Issue
 
Similar Threads
standalone v server mode
NX: Configuring port number
Closing the database.
execution and executable Jar question for SCJD
db location