File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Notifying Multiple Clients Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Notifying Multiple Clients" Watch "Notifying Multiple Clients" New topic

Notifying Multiple Clients

David Sham
Ranch Hand

Joined: Apr 19, 2005
Posts: 61
Hello, I am new to the ranch here but have been a silent observer for some time. I have a question about the functionality of the B&S project.

It makes no mention of this in my project specs, but is it required to have some kind of network server notification from the server to the client(s) whenever one client makes a change to the database? By doing this, all clients would then be updated to reflect the latest changes to the database whenever a change occurs (updating a record or deleting a record, etc.). I have not seen anything like this in Max's book or the Exam Cram book - perhaps this is beyond the scope of this project? I don't want to get docked points for missing functionality that should be there.

Any input is appreciated. Thanks.
Nick Veys

Joined: Apr 20, 2005
Posts: 1
Rule of thumb seems if it isn't specifically required, don't bother. I'm not. Considering the whole "this will eventually be a web app" portion of the description, server->client notification is a complete waste of effort IMO.
Paul Bourdeaux
Ranch Hand

Joined: May 24, 2004
Posts: 783
Implementing the Observer pattern is important for a real world project, but for this assignment it has generally been considered outside the scope of the project. You will not lose any points if you do not implement it.

If you do decide to implement it, realize that there are some issues using java.util.Observable with RMI... it has been brought up a few times in this forum, so you should be able to find the threads.

“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.” - Rich Cook
David Sham
Ranch Hand

Joined: Apr 19, 2005
Posts: 61
Thanks a lot for your replies. If it's not required, then I'm not going to do it. One less thing to worry about, and one less thing to potentially go wrong during evaluation. Thanks again.
I agree. Here's the link:
subject: Notifying Multiple Clients
It's not a secret anymore!