This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes distributed transactions? 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 » Java » Distributed Java
Bookmark "distributed transactions?" Watch "distributed transactions?" New topic

distributed transactions?

M Easter
Ranch Hand

Joined: Feb 11, 2007
Posts: 133
I'm curious about the state-of-the-art or best practices for distributed transactions in Java, particularly with respect to Web services.

Any insights, books, or frameworks would be _greatly_ appreciated. I realize this is quite vague but I'm new to distributed transactions. I do understand the philosophy behind, say, 2-phase commit, but I'm not sure if people are doing that and/or what they are using.

Any thoughts/experiences? Thanks!

M Easter
Software Composer -
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12761
Here is a page on distributed transactions as supported by Jini and Javaspaces.

The GigaSpaces company hosting that page is one of the long-time Javaspaces contributors and vendors.

A J Brown

Joined: Mar 17, 2011
Posts: 3
Just came across your post from 2007! I'm probably too late getting to you, but we have an implementation of distributed transactions that is specifically architected for web apps/web services. Take a look at if you're still interested. Basically, we have a transaction manager that does all the logging so we don't need 2-phase commit (which can be slow).
It is sorta covered in the JavaRanch Style Guide.
subject: distributed transactions?
Similar Threads
Advantage of using Spring Framework
EJB and JDBC/Distributed Transactions
Approaches to error handling in distributed computing?
Resource-local transaction and JTA transaction together
2 databases access with EJB ?