my dog learned polymorphism
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Observer design pattern B&S 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 "Observer design pattern B&S" Watch "Observer design pattern B&S" New topic

Observer design pattern B&S

Jakub Drzazga
Ranch Hand

Joined: Nov 14, 2008
Posts: 41

I wondering if it's necessary to update other clients if one books some record. Would it be enough just updates client from time to time or when user press specified button?

Please share your opinion about this.
Justin Rundle
Ranch Hand

Joined: Mar 26, 2008
Posts: 123

Difficult to share as this a design decision and only you know how your app is designed and how the server/client architecture works. My point is neither is right or wrong, what is important that your able to justify your decision.

More so you would have to ask yourself, "Is it absolutely crucial that ALL clients are updated when 1 client makes a change,"... how pratical is that, imagine the overheads if you have several clients using the system simultaneously... (just some food for thought)
Roberto Perillo

Joined: Dec 28, 2007
Posts: 2271

Partner, although it is a good idea, it is not required. Here's what I did: when working on networked mode, and a client updates a particular record, all records that are being displayed are refreshed with the latest values from the server.

Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
Jakub Drzazga
Ranch Hand

Joined: Nov 14, 2008
Posts: 41
Thank you guys
I agree. Here's the link:
subject: Observer design pattern B&S
It's not a secret anymore!