This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Updating clients when record has been modified? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Updating clients when record has been modified?" Watch "Updating clients when record has been modified?" New topic
Author

Updating clients when record has been modified?

Stef Widmer
Greenhorn

Joined: Jun 16, 2004
Posts: 17
Hi All,
When several clients have connected to the server and loaded records to display these in the GUI and one client books (modifies) a record, should I notify the other clients about the change and trigger an update of there GUI? Or ist is OK to leave the records and only notify the user when he tries to book the same record?
What do you think?
I've to say that I'm using the "serialized" approach of networking.

Thanks for your input.

Cheers Stef
[ June 17, 2004: Message edited by: Stef Widmer ]
Hanna Habashy
Ranch Hand

Joined: Aug 20, 2003
Posts: 532
hi Widmer :
I prefere the second approach, notifying clients when they try to update/ book a record. I followed this approch in my project too.
The first approch doesn't make sense to me, and it is problematic. Imagine a group of clients just viewing the data, and another group updateing the data. The first group of client don't need to be notified of changes, otherwise they will be hammared with notifications.


SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
Stef Widmer
Greenhorn

Joined: Jun 16, 2004
Posts: 17
Hi Hanna
Thanks for your hint. Deeply I thought so as well, but I was not sure.

Cheers
Stef
 
Consider Paul's rocket mass heater.
 
subject: Updating clients when record has been modified?