aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Observer design pattern B&S" Watch "Observer design pattern B&S" New topic
Author

Observer design pattern B&S

Jakub Drzazga
Ranch Hand

Joined: Nov 14, 2008
Posts: 41
Hello

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
Bartender

Joined: Dec 28, 2007
Posts: 2247

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: http://aspose.com/file-tools
 
subject: Observer design pattern B&S
 
Similar Threads
WA #1.....word association
Riddle
Scrabble... it only takes a minute...
JQ+
WA #2 ..... word association