42
you should ALWAYS prompt for both client AND server, and display the values persisted in the properties file if those are available.
Such configuration information must be stored in a file called suncertify.properties which must be located in the current working directory.
SCJP, SCJD, SCWCD, OCPJBCD
Bob N
CSSLP
SCJP - 1.4
SCJD - (B&S) Used 1.5 And It Runs On Solaris10
SCWCD - Thanks to HFSJ!!
IMHO you don need ask for the configuration information(like server port and host) if this information already existing (they are already defined or are loaded from the properties file). In my specification I have something like :
42
SCJP, SCJD, SCWCD, OCPJBCD
Each application mode(server,client and standalone) has it own configuration file.
Bob N
CSSLP
SCJP - 1.4
SCJD - (B&S) Used 1.5 And It Runs On Solaris10
SCWCD - Thanks to HFSJ!!
SCJP 1.4 91%, SCJP 1.5 88%, SCJD B&S
42
Each application mode(server,client and standalone) has it own configuration file.
SCJP, SCJD, SCWCD, OCPJBCD
Bob N
CSSLP
SCJP - 1.4
SCJD - (B&S) Used 1.5 And It Runs On Solaris10
SCWCD - Thanks to HFSJ!!
SCJP, SCJD, SCWCD, OCPJBCD
42
42
Bob, in your scenario the user would have to modify the properties file directly in order to change the startup settings for the server.
That's an automatic failure.
Bob N
CSSLP
SCJP - 1.4
SCJD - (B&S) Used 1.5 And It Runs On Solaris10
SCWCD - Thanks to HFSJ!!
42
Bob N
CSSLP
SCJP - 1.4
SCJD - (B&S) Used 1.5 And It Runs On Solaris10
SCWCD - Thanks to HFSJ!!
42
how will you allow users to change the configuration once it's initially set?
Bob N
CSSLP
SCJP - 1.4
SCJD - (B&S) Used 1.5 And It Runs On Solaris10
SCWCD - Thanks to HFSJ!!
Originally posted by Bob Nedwor:
We are not required to provide this. Once the configuation is set, it remains persistent through subsequent runs of the application.
SCJP 1.4 91%, SCJP 1.5 88%, SCJD B&S
In a real world situation I think your approach is very limiting and would have many problems when delivered for clients...
Bob N
CSSLP
SCJP - 1.4
SCJD - (B&S) Used 1.5 And It Runs On Solaris10
SCWCD - Thanks to HFSJ!!
42
Al<br />(SCJP,SCJD and working on SCEA)
Bob, in your scenario the user would have to modify the properties file directly in order to change the startup settings for the server.
That's an automatic failure.
Bob N
CSSLP
SCJP - 1.4
SCJD - (B&S) Used 1.5 And It Runs On Solaris10
SCWCD - Thanks to HFSJ!!
42
Originally posted by Jeroen T Wenting:
Do NOT start the server or client and just assume that what's in that file is what the assessor wants to use, you MUST give a chance to change the settings. Fail in that and it's another automatic failure.
Do you have a quote from your assignment that says you can not use the persistent settings without first asking the user??
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.
SCJP, SCJD, SCWCD, OCPJBCD
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.
SCJP, SCJD, SCWCD, OCPJBCD