I would like to know few further things:
1) Since I'm using Monkhouse's book as sole reference, would there be any problem of Oracle thinking as I'm copying the code. Of course, the code from book is very different, however, my underlying design is very much similar to given in the book. e.g. I'm having equivalent classes (DVDFileAccess by him, ContractorFileAccess by me etc.). Also, generic methods like read, write etc. are not much different (though most of important methods are having different signatures : thanks to Oracle for providing ready made interface). Also (I've not developed it yet), but I don't think there would be much difference in RMI and (especially) GUI code from him and mine (same thing I thought during DB design and code is pretty different now). So my basic question is, if I use exact same design patterns
from his book (method signatures and hence code would be different) would it be considered as 'copying'? Because in RMI and GUI, there won't be much difference - only class type, button layout etc would be different. I went through 'copying Monkhouse' thread
here, but still I'm worried about RMI and (especially) GUI. Please help.
2) In RMI, my current plan is : to create a class which would implement given interface, and methods of that class would take care of all underlying DB operations. Also, I'm using object of that class ('Data' class) as client identifier. So,
a) Does each client get different object of that class?
b) When a client is connected to server, is there a guarantee that during all client's operations, the 'same' object will be working for that client(unless client explicitly create new object)?
I know those questions are very naive (and more RMI specific than OCMJD specific), but I'm very amateur in RMI
3) Monkhouse has a problem in his writing logic if two threads are simultaneously writing to file. both can get same offset and only 1 record would be written (and other would be overwritten). I think my code won't be having this problem (of course my code is slower than his, but it will contain valid data). Please comment.
4) Oracle states that code should be my own work, so asking questions at this detailed level in forums and using other person's classes for testing
deadlock etc., is it officially allowed? I think it is fine as long as I'm not putting or asking actual code, but what does Oracle thinks? Is it considered as I took help from external entity etc.?
Thanks in advance.