Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Command Line Parameters - I am concerned

 
Stuart Bell
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have just been reviewing my FBN application against the requirements. In regards to command line parameters at startup, the following have been specified:
- DNS name of the server
- Port number used by the server
- Data file name(s)
- java.rmi.server.codebase
- security manager policy file
However, I use one outside of this list which is a simple piece of text which is either "local" or "remote" which is what is used to switch between these two modes. Does anyone know if this is ok?? I am a little concerned as it states in the requirement specification the following "These command lines may only take configuration parameters selected from this list".
I would really appreciate an answer on this one,

Cheers,

Stuart
 
Aleksey Matiychenko
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am going to make mine so that I supply local file name then the program starts in local mode. If supply remote server name and/or port it will start in networked mode. I supply everything network mode will prevail.
I would not add anything that goes against the spec
 
Jeremy Zink
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I chose to start my application with a dialog box asking which mode to run in, local or over a network. This would accomplish the same thing you're trying to do and stays within the specs laid out for the command line.
 
Rick Fortier
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with Jeremy's way. Some people have done their assignment which allows the user to switch methods on demand. They do this using a menu option.
 
Kalichar Rangantittu
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would it lie within the realms of acceptable startup of serverif I did this
java -DFBNDB=/home/db.db -DFBNDBName=Flights ....
Can I provide a name for the database that I hope will uniquely identify the database. I do not want to use the file name db.db as the name of the datatabase we could have different db.db in differnt directories. I am keeping a cache of databasename/database location in the server. Also, I dont want to allow the client to be able to connect to a database remotely by passing in the location of the remote database. This might not look good. Any thoughts?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic