File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Confused about lock cookie

 
Ronnie Phelps
Ranch Hand
Posts: 329
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am taking the beta 1.4 exam and I am kind of confused about the lock cookie concept. I made a few assumptions that I'm not sure about:
1. the lockCookie attribute is just an arbitrary numeric value that you can increment after the server is locked or unlocked.(this value isn't obtained from any core library function calls)
2. There should only be one lockCookie and this must be released by clients during an unexpected event such as a client losing a connection before the lock is released.
Again these are just assumption I made. Let me know what you think.
 
Tybon Wu
Ranch Hand
Posts: 84
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

1. the lockCookie attribute is just an arbitrary numeric value that you can increment after the server is locked or unlocked.(this value isn't obtained from any core library function calls)

That's my intepretation too.

2. There should only be one lockCookie and this must be released by clients during an unexpected event such as a client losing a connection before the lock is released.

At most one lockCookie per record at any given time. The server should unlock all records locked by the client which crashed.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic