• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

NX: Configuring port number

 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 619
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Chris,

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.
 
Lookout! Runaway whale! Hide behind this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic