Aaron Mulder wrote:
>         When a TX calls rollback on an XAResourece, and the rollback
> fails (so the XAResource throws an XAException), should the XAResource
> assume that everything is over or should it wait for a forget?  What about
> for a failure in commit or prepare instead of rollback?

In case of a heuristic exception, the XA resource (or to be
more precise: The resource manager for the XA resource) should
not forget about the heuristic until forget() is explicitly
called.
But if the exception is not a heuristic exception, there is no
heuristic to remember.

This implies IMO that if an XA resource has done a heuristic
decision, it cannot vote read-only on the commit() call, as
this means that the transaction manager should no longer 
contact the resource about that transaction.

Best Regards,

Ole Husgaard.

Reply via email to