• 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

B&S: problem when using cache

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My implemenation is to cache the contractors during the initial start up in a hashmap. There will be no problem if it is running as server mode with multiple clients, but when run in 2 standalone modes, 1 user will never know that other user has updated the file until he/she refreshed, there is chance that one stand alone client overwrites changes of other stand alone client. is it acceptable?

Thanks in advance
 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

check your assignement about the number of software accessing the database
file. It is very likely that at most one program access the database file
at any moment (this is the requirement for my assignement, for example).
If so, you are not supposed to support two standalone mode programs
running simultaneously.

brgds,

Gilles
 
reply
    Bookmark Topic Watch Topic
  • New Topic