• Post Reply Bookmark Topic Watch Topic
  • New Topic

Two Phase Lock

 
Anandh Ramesh
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I would like to know how to do 2-phase locking using Java. I know the essence of the protocol, but am unsure of how to go about implementing it. Any help is appreciated.

Thanks.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36031
432
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anandh,
Normally, you use an XA driver which provides two phase commit rather than implementing it yourself.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!