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

Java command line - Data File Name ?

 
Eugene Sun
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am working on the Flight by Night service project. In its requirement, it states that you can have the java command line argument like
1. java.rmi.server.codebase
2. java.rmi.server.hostname
3. Data file name
4. server port number
and etc.
My question here is about this "Data file name", I am thinking of putting that in the java command line arguments when starting Client in the local mode, so the client can find the database file wherever the client files are installed. Something like "c:\scjd\server\db.db" (windows) or "\scjd\server\db.db". Always the location where the server files are installed.
Has anyone done this before ? Can the file directory names like my examples be qualified for "Data file name" in the requirements ?
I am trying to make sure there is only one db.db being used while running in a local mode or networked mode.
Thanks,
Eugene
 
Jason Dobies
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are correct in interpretting the data file name parameter. I used the same approach on my FBN application. Be careful to document that is optional or that its presence will trigger the client in local mode, and you'll be fine.
Good luck!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic