Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Notify clients when db file changes on server?

 
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?
 
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
 
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
 
author and jackaroo
Posts: 12199
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • 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
    Bookmark Topic Watch Topic
  • New Topic