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.
Should the client address the server by IP or by hostname
why you guys are making differences for the db-Path in standalone or networking mode.
Let's say you want to start a remote database and local database on the same computer. Each database should use different database file. How can you do it having one "dbfile" property.
Sun Certified Java Web Component Developer for J2EE v1.4<br />Sun Certified Java Developer for J2SE v1.4<br />Sun Certified Java Programmer for J2SE v1.4
Let's say you want to start a remote database and local database on the same computer. Each database should use different database file. How can you do it having one "dbfile" property.
5. Ulrich, it is not correct: I don't load properties form the file in getDBPath() method. I do it only in Constructor. I feel there Properties object with all values from the file. getDBPath() get an apprpriate value from the properties. It doesn't read properties (load) from the file, when getXXX invoked:
Sun Certified Java Web Component Developer for J2EE v1.4<br />Sun Certified Java Developer for J2SE v1.4<br />Sun Certified Java Programmer for J2SE v1.4
Originally posted by Ulrich Heeger:
Ah, does it mean with these different properties you will ensure the possibility of different locations for the remote database and local database, discarding our situation where we have only one database for remote and local connection
Originally posted by Ulrich Heeger:
As default db-location I have following String:
I must admit that I?m not very familiar with other OS than Windows (I imagine everybody rolling his eyes;.)) so I don?t know if this String would be valuable for other vendors.
Originally posted by Ulrich Heeger:
Since the User can type in the textfield of the ?server? dialog box the vendor-specific path encoding, I would be fine!?
Are my assumptions correct?
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
I like tacos! And this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|