Griffith

Greenhorn
+ Follow
since Apr 28, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Griffith

Vikas:
I put my LockManager in the db package for a couple of reasons: I felt that record-locking was integral to any database, and wanted these functions in the core package. Local connections can ignore lock/unlock. Also, lock() and unlock() are public methods which must be visbile on our remote GUI -- according to the requirements. Since they cannot be removed from the Data class, I was inclined to give them an implemention there and to have the locking functionality within the same package.
You make a good case for synchronizing on the HashMap, instead of synchronizng methods -- I will need to revisit this ...
Vikas:
My design for LockManager is quite similar to yours, with a seperate class and interface within suncerify.db.
One difference: I elected to synchronize the lock/unlock methods within my LockManager class, instead of synchronizing the HashMap itself. By implemented the LockManager as a sungleton, I'm guaranteeing only one instance per JVM.
I'm not sure of the advantages of either approach ...
John:
If you can tear yourself away from fishing, take the exam sooner rather than later. I'm an IBM mainframe programmer without any background in OOP, and I got an 89 on the SJCP three weeks ago. The actual test was EASIER than most of mock exams, i.e., JQPlus and Marcus Green 1 and 2.
Looking back, I wish I had taken the test a month earlier.

I learned Java rather haphazardly from Thinking in Java, over 6 months of weekends. Like you, I spent December/January weekends fishing for Steelhead in Northern California. Then I spent 5 weekends studying. When I couldn't stomach another weekend of studying RHE, I registered for the test.
The actual test was so unchallenging, that I was actually disappointed. I 'd rate my test-taking skills as average or only slightly above. In a nutshell, the test consists of a large volume of easy questions, the challenge being the time limit.
So unless you need 95% or above on the exam, relax ...
Griffith

22 years ago