wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes B&S: problem when using cache Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "B&S: problem when using cache" Watch "B&S: problem when using cache" New topic
Author

B&S: problem when using cache

fei lin
Ranch Hand

Joined: Nov 25, 2007
Posts: 39
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
Gilles Marceau
Ranch Hand

Joined: Feb 17, 2007
Posts: 78
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


SCJP 1.5<br />SCJD 1.6<br />SCBCD in progress...
 
Don't get me started about those stupid light bulbs.
 
subject: B&S: problem when using cache