Hi all, I have a query about configuring the port that the server is running on.
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 I have to write a gui to configure which port the server should start on? or can I just state in the userguide.txt that a port must be free? Thanks Chris.
Hi, Assuming that there are no instructions in your exam which contradict the following: then you probably will at the very least have a minimal user interface so that the server can be shut down. Your server's user interface may also specify the port number; I don't know what the consensus is on this, however; but, it seems like a reasonable thing to offer. Your server's interface also needs a way to let the user specify the database filename and location. Thanks, Javini Javono
Originally posted by Chris Harris: I have a query about configuring the port that the server is running on. Does this mean that I have to write a gui to configure which port the server should start on? or can I just state in the userguide.txt that a port must be free?
You are probably OK hard-coding the port since the assignment instructions do not explicitly require the port number to be configurable. However, the database file location is required to be configurable. Since the server GUI is going to have to make the database file location configurable many people have decided to allow the user to specify the port number as well. Whether to make the port number configurable is up to you. I don't think it's required by the instructions. Simpler is better.
SCJP, SCJD, SCWCD, SCBCD
I'm THIS CLOSE to ruling the world! Right after reading this tiny ad:
a bit of art, as a gift, that will fit in a stocking