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 problem with book seats 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 "problem with book seats" Watch "problem with book seats" New topic

problem with book seats

badarinath gururaj

Joined: May 25, 2003
Posts: 5
Has anybody managed lock/read/modify/unlock sequence in the modify method of the Class that wraps Data and be used only in the remote mode??
Thanks and regards
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11778

Hi Badari,
Yes, there have been people who have done it and passed.
My personal view is that this is not correct from an extensibility viewpoint. Today we need to lock one record, modify it, and unlock it. Tomorrow the requirement may change where we need to lock two records, modify both, and unlock both. If we cant do the modification on one then we cannot do the modificaton on another. If you have the lock done behind the scenes, then when it comes time to extend the project, the locking code has to be removed from the class you put it in, and moved to the class handling two simultaneous modifications.
Regards, Andrew

The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
I agree. Here's the link:
subject: problem with book seats
It's not a secret anymore!