Best Regards<br /> <br />SCJP1.4 SCJD1.4 SCEA
Originally posted by james wang:
When I start the server program,should I let user choose the db file from a FileChooser dialog?
I just read the db file in current directory now. Is it ok?
Could you tell me something about it? I didn't find the instruction request for server GUI...
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.
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.
The mode flag must be either "server", indicating the server program must
run, "alone", indicating standalone mode, or left out entirely, in which
case the network client and gui must run.
Regards, George
SCJP, SCJD, SCWCD, SCBCD
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.
The mode flag must be either "server", indicating the server program must run, "alone", indicating standalone mode, or left out entirely, in which case the network client and gui must run.
Best Regards<br /> <br />SCJP1.4 SCJD1.4 SCEA
Originally posted by james wang:
But I'm still a little cofused about "suncertify.properties" file. Is it necessary for the assignment? Because I think I don't need the config file...
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.
Regards, George
SCJP, SCJD, SCWCD, SCBCD
There sure are a lot of musts in there. How are you going to persist the configuration information between runs of the program if not "stored in a file called suncertify.properties which must be located in the current working directory." I don't think it's really a matter of interpretation, they're suggesting it would be a very wise thing to use the suncertify.properties file. In fact, they seem to be insistent about it. If I were you I would take the hint.
The configuration information is not in any sense optional. For example, they tell you that you need to allow the user to specify the location of the database file. How are you going to allow the user to do that? Remember you can't use command-line arguments to do that. I think the suncertify.properties is the way to go here. Also, doesn't the host name (and arguably the port number as well) of the database server need to be configurable. If it's not configurable how in the world are you going to know beforehand what the name of the tester's database server host is? There are aspects of the assignment that are ambiguous or debatable, I just don't think this is one of them.
Best Regards<br /> <br />SCJP1.4 SCJD1.4 SCEA
Originally posted by james wang:
I just want to know if the config file is necessary, because I am afraid of auto-fail. I'm sorry for trouble you, do you mind to correct what I said?
Regards, George
SCJP, SCJD, SCWCD, SCBCD
Application
========
When launched, the app displays a dialog to get the location using either hard-coded defaults or params from the properties file if it was previously created. My interpretation of location is:
Standalone - db file pathname
Network Server - db file pathname and port no.
Network Client - hostname and port no.
Best Regards<br /> <br />SCJP1.4 SCJD1.4 SCEA
Stinging nettles are edible. But I really want to see you try to eat this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|