userDirectory.prepare(wc);
} catch (Exception e) {
log.error("Cannot prepare " + xid, e);
- throw new XAException(XAException.XA_RBOTHER);
+ throw new XAException(XAException.XAER_RMERR);
}
return XA_OK;
}
userDirectory.commit(wc);
} catch (Exception e) {
log.error("Cannot commit " + xid, e);
- throw new XAException(XAException.XA_RBOTHER);
+ throw new XAException(XAException.XAER_RMERR);
} finally {
cleanUp(xid);
}
userDirectory.rollback(wc(xid));
} catch (Exception e) {
log.error("Cannot rollback " + xid, e);
- throw new XAException(XAException.XA_HEURMIX);
+ throw new XAException(XAException.XAER_RMERR);
} finally {
cleanUp(xid);
}