• 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
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

Properties  RSS feed

 
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to manage user options in a single property file: for both client and server options. Since the instruction tells that there is only one db access at a time, I don't need to consider for multithread issue here because of the usage of the property should be at the init of db server. However, there could be multiple clients, some of which could be launched from the same directory (property file should be in the ./ with the designated name) and thus access to/modify the properties in the same file. Should I consider this issue and how?

Thanks very much.
 
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Essentially, if it's not mandated by the assignment spec, you shouldn't consider it. Otherwise, you will be spending the next 10 years completing your assignment. So .... what does your spec say?
 
Andy Zhu
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, as I think the program should be consistent between run. So the properties should not be crashed because of multiple clients run from the same directory. Well the consistency is required.

so you don't think this is issue I should consider.?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!