wood burning stoves 2.0*
The moose likes JDBC and the fly likes Two Phase Lock Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Two Phase Lock" Watch "Two Phase Lock" New topic

Two Phase Lock

Anandh Ramesh
Ranch Hand

Joined: Dec 15, 2004
Posts: 61

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.


cheers,<br />Anandh
Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 30130

Normally, you use an XA driver which provides two phase commit rather than implementing it yourself.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
I agree. Here's the link: http://aspose.com/file-tools
subject: Two Phase Lock
Similar Threads
4 phases and its use
R there any developers here that confess to ignoring modelling 4 developing systems?
what is the phase after sometime continue futher
Render Response phase is not getting invoked
Advanced JDBC topics for 484