aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes URLybird locking Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "URLybird locking" Watch "URLybird locking" New topic
Author

URLybird locking

donal horgan
Ranch Hand

Joined: Mar 11, 2005
Posts: 54
Quick question -- did people find themselves using one lock flag per record or simply one lock flag in total denoting as to whether a record is locked at a particluar time.i.e. where only 1 record can be locked at any omoent in time
John Smith
Ranch Hand

Joined: Oct 08, 2001
Posts: 2937
I don't think it would satisfy the requirements if you lock the entire database just to modify a particular record. I mean, in that case, you would not even need to pass a record number to your lock/unlock methods -- just lock the entire database, modify the record, and unlock the entire database. Would not be much of a challenge.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: URLybird locking
 
Similar Threads
Database Lock(-1)?
Concurrency
Developer Beta
What's the fuzz about synchronized(collection)?
Is this DatabaseLock implementation elegant.