aspose file tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes NX: where can i put the Map of locking and unlocking? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Reply Bookmark "NX: where can i put the Map of locking and unlocking?" Watch "NX: where can i put the Map of locking and unlocking?" New topic
Author

NX: where can i put the Map of locking and unlocking?

guyue0505
Greenhorn

Joined: May 25, 2003
Posts: 21
In my application , i have a class named LockManager which control the lock and unlock . i think i will need a hashMap in this class. The key is the recNo and the value is the lockCookie of the correspond recNo.
And the lockManager has a function named setMap(Map hashMap){ this.hashMap =
hashMap; }
My question is where can i put the hashMap's declaretion , in Server.java
or other place?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: NX: where can i put the Map of locking and unlocking?
 
Similar Threads
synchronized revisted...
Passed 150/155
my question about LockManager.java
the question of the lockmanager
Data: Mutition/Singletone