public Uid get_uid () { return _theAction.get_uid(); }
public Uid get_uid () { if (_theAction != null) return _theAction.get_uid(); else return Uid.nullUid(); }
/** * Convert an IOR representing an OTS transaction into a JTA transaction * * @param orb * * @param ior the CORBA reference for the OTS transaction * @return a JTA transaction that wraps the OTS transaction */ private static Transaction controlToTx(String ior) { log.debug("controlToTx: ior: " + ior); ControlWrapper cw = createControlWrapper(ior); TransactionImple tx = (TransactionImple) TransactionImple.getTransactions().get(cw.get_uid()); if (tx == null) { log.debug("controlToTx: creating a new tx - wrapper: " + cw); tx = new JtsTransactionImple(cw); putTransaction(tx); } return tx; }
public int cancel () { try { Interposition.destroy(super.get_uid()); rollback(); return ActionStatus.ABORTED; } catch (Unavailable ex) { return ActionStatus.INVALID; } catch (NoTransaction ex) { return ActionStatus.NO_ACTION; } catch (Exception ex) { jtsLogger.i18NLogger.warn_interposition_cwabort(ex); return ActionStatus.INVALID; } }
/** * @message com.arjuna.ats.internal.jts.interposition.cwabort Failed to * cancel transaction: */ public int cancel () { try { Interposition.destroy(super.get_uid()); rollback(); return ActionStatus.ABORTED; } catch (Unavailable ex) { return ActionStatus.INVALID; } catch (NoTransaction ex) { return ActionStatus.NO_ACTION; } catch (Exception ex) { if (jtsLogger.loggerI18N.isWarnEnabled()) { jtsLogger.loggerI18N.warn("com.arjuna.ats.internal.jts.interposition.cwabort", ex); } return ActionStatus.INVALID; } }
tx = (TransactionImple) TransactionImple._transactions.get(otx.get_uid());
tx = (TransactionImple) TransactionImple._transactions.get(otx.get_uid());