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

Notify clients when db file changes on server?

 
Alan Mc Kernan
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the case that we are using the client/server mode and one client updates the database remotely.. are other clients supposed to be aware of this change?

Or will they only notice the change when they re-search?

In a typical swing app with a JTable i would use the observer pattern and update the view when the data model changes.. but here the data is remote.. and perphaps your data-model is local

any thoughts?
 
Marcio Aun Migueis
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alan,

I have the same concern about this question, but I think we don't have to worry too mucht about this.I'd like to see others opinoin about it, too

Regards

M�rcio
 
Jonathan Moore
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a real world scenario I'd say yes, but for the assignment it is an extra area of complexity which gives you more opportunities to lose marks. It's not part of the requirements so I don't think you'll lose marks for not doing it - I'm not implementing it.

cheers
Jon
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

Like Jon, I think that this is something you do not have to implement.

You can do it easily enough, and there have been two threads in the last week or two discussing how to do this in an RMI environment. It can be interesting to learn about how to do this, but you won't get extra marks for it in your submission, and you could pottentially loose marks.

Whether you would do this or not in a real life situation is debatable - consider airline reservations: if you look up a Qantas / British Airways / United Airlines flight, you will not get notification if a seat is booked. Not even if you are in one of the airlines offices using a dedicated terminal to their mainframes.

Regards, Andrew
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic