Meaningless Drivel is fun!*
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 Android Security Essentials Live Lessons this week in the Android 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Updating clients when record has been modified?
 
Similar Threads
Where to place RecNo?
Question about the methode defined in the interface
B&S GUI in sync accross multiple clients?
B&S: deleteRecord() & createRecords() -> GUI?
NX: Extending or expanding the DB interface.