Yikes! I am just starting and cannot move forward until I understand whether or not you can change existing signatures. For example, the assignment gives me three new methods to implement. Their signature includes an int for the record number. The RHE book says in one place that part of this exam is to workaround less than ideal code that's already been written. Then in another place (page 607 More on Exam Requirements), they say you CAN change existing code. I've played around with RMI and threads but cannot implement anything at all until I resolve this question. Any thoughts? Please - this is a general question - not just about record number, but about all the existing code. E.g. if you wanted to, could you change the way they implemented some method, or would you have to work around the way they wrote it to begin with? Thanks in advance for your help to a greenhorn. Melinda
There have been a lot of discussions here about whether we can (or should) modify the existing code. I think the consensus is that all the existing code is perfect (and should not be modified), except possibly for the signatures (and location) of the lok() and unlock() methods. It turns out that you can pass the exam with good marks if you modify the code, and if you don't modify the code. It all comes to how well you justify your design decisions in the design document that you send in along with your completed assignment. Eugene. Eugene.
I think the spirit of the assignment is to work with what you have. Changing lock() and unlock() signatures might be a good idea depending on whether you want to use client ids, for example, but personally i think its best to not modify existing code, and to at most modify method signatures. Doing things from the ordinary just gives you greater risk of loosing points.