Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

question about the database file

 
Carol Tsao
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a newbie here and recently working on the exam.
In my design, the data info will be read into the cache from the file upon the server startup. During the running of server, shall I update the file if there is a booking confirmed? Or the database file is never updated.
Thanks.
 
Michael Dreese
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I think you should update the data file whenever a booking occurs. Let's say while I'm booking a room, another customer just open the GUI client. After you booked the room, that customer will not see the room has been booked. In this case, wrong data is shown to that customer.
I hope I can help you.
Cheers,
Michael
 
Kevin Cao
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know whether you have the "old" assignment or not. In my assignment it clearly states "It is not necessary to provide for live updates on multiple clients when bookings are made at other clients." But I think you should update your databse when current client books a flight.
Kevin
 
Max Habibi
town drunk
( and author)
Sheriff
Posts: 4118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kevin,
In general, most people have interpreted that to mean that you don't need to provide a callback mechanism that 'automatically' updates client B when client A has made a change.

M, author
The Sun Certified Java Developer Exam with J2SE 1.4
 
Ta Ri Ki Sun
Ranch Hand
Posts: 442
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Max Habibi:
Kevin,
In general, most people have interpreted that to mean that you don't need to provide a callback mechanism that 'automatically' updates client B when client A has made a change.

M, author
The Sun Certified Java Developer Exam with J2SE 1.4


My assignment doesn't say any such thing does that imply i should implement Remote notification ?
I was expecting to have to do it so I guess I'm just asking out of interest, the closest my assignment comes to any such thing is to say that "at most one program is accessing the database file; thorefore your locking system only needs to be concerned with multiple concurrent clients of your server"
but thats a different beast altogether
 
Max Habibi
town drunk
( and author)
Sheriff
Posts: 4118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would think that it implied that you shouldn't do it.
M
 
Carol Tsao
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Micheal
I am taking the old exam.
As what you said, I need to update the file once a booking succeeds. Right?
Thanks.
 
Michael Dreese
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Carol Tsao:
Hi, Micheal
I am taking the old exam.
As what you said, I need to update the file once a booking succeeds. Right?
Thanks.

Yep, that is what I meant.
Cheers,
Michael
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic