• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Two file location properties in suncertify.properties?

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic