This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Two file location properties in suncertify.properties?

 
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?
 
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.
 
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!