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

Two file location properties in suncertify.properties?

 
Can Zheng
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers,

I'm doing the URLyBird assignment and there's a requirement that the configurations be saved in suncertify.properties file and be consistent between runs of the app.

All this is pretty straight forward, but my question is do I need two separated properties for db file locations for standalone mode and server mode respectively?
 
Jared Cope
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Originally posted by Can Zheng:

do I need two separated properties for db file locations for standalone mode and server mode respectively?


I did this. Keep only one file, but have two configuration keys within the file.

Cheers, Jared.
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
actually, you need 3.

One each for the file location for standalone client and the server, and one for the server address for use with the network client.
 
Jared Cope
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Originally posted by Jeroen T Wenting:
actually, you need 3.

One each for the file location for standalone client and the server, and one for the server address for use with the network client.


Depends how you do it and what you are assuming. I've gone for 2 only because to me the database files that the server makes use of, and the database files that the client makes use of in stand-alone mode are the same entities. I store them in the same configuration setting.

I decided in the end that any files that a server can make use of, client stand-alone mode should be able to as well.

Cheers, Jared.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic