[infinispan-dev] XAResource without recovery

Manik Surtani manik at jboss.org
Wed Apr 20 13:30:02 EDT 2011


On 20 Apr 2011, at 17:27, Mircea Markus wrote:

> On 20 Apr 2011, at 17:14, Manik Surtani wrote:
>> Or if your tx manager doesn't do recovery.
> Hmm, that's not optional for a TM, but okay.
>> Or you don't want to enable the recovery process on your TM.
> if that's the case why not just use Synchronization? You'd get the same semantics as you can veto the transaction progress during prepare.

You can't cause other resources to not commit in this case.  E.g., prepare succeeds, but during commit, something goes wrong (e.g., network failure).  With a Sync infinispan is only called with an afterCompletion() which is too late to inform other resources of a failure.  But an XA commit() means the TM can inform other resources and attempt a recovery with these other resources.


--
Manik Surtani
manik at jboss.org
twitter.com/maniksurtani

Lead, Infinispan
http://www.infinispan.org






More information about the infinispan-dev mailing list