"Life is like playing a violin in public and learning the instrument as one goes on."<br /> <br /> - Samuel Butler
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
"Life is like playing a violin in public and learning the instrument as one goes on."<br /> <br /> - Samuel Butler
Originally posted by Czarak Ynehac:
However what should <path_and_filename> be? I'm guessing that should be the absolute path to where the application jar file is.
From the instructions:
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.
See my earlier quote from the instructionsOriginally posted by Czarak Ynehac:
In option 1 - if I am running the jar with the server flag, don't I need to tell the server what database file to use? Should it be possible for nothing to be specified here and a default database file to be used? Should all this be done via a gui after I run the command line with the server flag?
Again, I think that the quote from the instructions covers most of this.Originally posted by Czarak Ynehac:
In option 2 - If I am running the jar with the alone flag, I need to give the standalone GUI a URL to tell it where the remote server is running - how should this be done? Also in a gui after the command line is executed? Am I correct in saying there should be no default option here - the user must specify the URL of the remote server?
Again, I think that the quote from the instructions covers most of this.Originally posted by Czarak Ynehac:In option 3 - If I am running the jar with no flag at startup, don't I need to tell the server what database file to use? Should it be possible for nothing to be specified here and a default database file to be used? Should all this be done via a gui after I run the command line with the server flag?
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
"Life is like playing a violin in public and learning the instrument as one goes on."<br /> <br /> - Samuel Butler
Other Questions:
If someone tries to start a server with a specific database file and a server is already running in the JVM using that specific database file, is it valid for me to handle this by doing nothing except returning a message on the command line saying something along the lines of: "Server is already up with database file xyz.db" and returning the user to the command prompt?
"Life is like playing a violin in public and learning the instrument as one goes on."<br /> <br /> - Samuel Butler
There are minor differences based on mode, but the basic questions are the same.If the properties file contains the location of a valid database file should I ask the user to confirm launch with this database file and provide the option of changing to another database file? Or should I launch the application with the database file specified in the properties file and bypass the properties gui altogether? Maybe both are valid - does anyone have an opinion on pros/cons for each approach? Should I record the URL and Port number the server is running on in the propeties file in the current directory?
If you are trying to start two servers in the same JVM, then this could only happen if you explicitly coded your server in such a way that this was possible. Otherwise any other server would start in it's own JVM. So simple answer: don't write your server such that running the one command "java -jar runme.jar server" can result in two servers running.If someone tries to start a server with a specific database file and a server is already running in the JVM using that specific database file, is it valid for me to handle this by doing nothing except returning a message on the command line saying something along the lines of: "Server is already up with database file xyz.db" and returning the user to the command prompt?
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |