public final Xid getXid () { try { ServerTransaction tx = (ServerTransaction) super._theAction.getImple().getImplHandle(); return tx.getXid(); } catch (Exception ex) { ex.printStackTrace(); } return null; }
public final Xid getXid () { try { ServerTransaction tx = (ServerTransaction) super._theAction.getImple().getImplHandle(); // could be null if activation failed. if (tx != null) { return tx.getXid(); } else { return null; } } catch (Exception ex) { ex.printStackTrace(); } return null; }
public void resumeWrapper (ControlWrapper which) throws InvalidControl, SystemException { if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("CurrentImple::resumeWrapper ( " + which + " )"); } if (which != null) { /* * If this is a local transaction and we haven't zero-ed the transaction * reference then resume it. Otherwise go with the Control. */ ArjunaTransactionImple tx = ((which.getImple() == null) ? null : which.getImple().getImplHandle()); if (which.isLocal() && (tx != null)) resumeImple(which.getImple()); else resume(which.getControl()); } else { resumeImple(null); } }
public void recover() { ArjunaTransactionImple implHandle = getControlWrapper().getImple().getImplHandle(); if (implHandle != null) { implHandle.activate(); } }
public void recover() { getControlWrapper().getImple().getImplHandle().activate(); }
public final Xid get_xid (boolean branch) throws SystemException { ControlImple controlImple = _theAction.getImple(); if (controlImple != null) { return XidUtils.getXid(controlImple.get_uid(), branch); } else { return XidUtils.getXid(_theAction.getControl(), branch); } } }
public final Xid get_xid (boolean branch) throws SystemException { ControlImple controlImple = _theAction.getImple(); if (controlImple != null) { return XidUtils.getXid(controlImple.get_uid(), branch); } else { return XidUtils.getXid(_theAction.getControl(), branch); } } }
public void resumeWrapper (ControlWrapper which) throws InvalidControl, SystemException { if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "CurrentImple::resumeWrapper ( " + which + " )"); } if (which != null) { /* * If this is a local transaction and we haven't zero-ed the transaction * reference then resume it. Otherwise go with the Control. */ ArjunaTransactionImple tx = ((which.getImple() == null) ? null : which.getImple().getImplHandle()); if (which.isLocal() && (tx != null)) resumeImple(which.getImple()); else resume(which.getControl()); } else { resumeImple(null); } }
ThreadActionData.pushAction(action.getImple().getImplHandle());
return actPtr.getImple().getControl(); else return actPtr.getControl();
ThreadActionData.pushAction(action.getImple().getImplHandle());
if ((cw == null) || (!controlHandle.equals(cw.getImple())))
if ((cw == null) || (!controlHandle.equals(cw.getImple())))
if ((cw == null) || (!controlHandle.equals(cw.getImple())))
return c.getImple().equals(_controlImpl);
return c.getImple().equals(_controlImpl);
return actPtr.getImple().getControl(); else return actPtr.getControl();
if ((cw == null) || (!controlHandle.equals(cw.getImple())))