public void finalize () { if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("ExplicitInterposition.finalize ()"); } if (_inUse) { try { unregisterTransaction(); } catch (Exception e) { jtsLogger.i18NLogger.warn_exunregfail("ExplicitInterposition.finalize"); } } }
/** * Create a new instance and interpose with the specified transaction. * Depending upon the value of the boolean parameter, remember any current * transaction that may be associated with the invoking thread so that it * can be restored once interposition has finished. */ public ExplicitInterposition (PropagationContext ctx, boolean remember) throws InterpositionFailed, SystemException { if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("ExplicitInterposition::ExplicitInterposition ( PropagationContext ctx, " + remember + " )"); } _remember = remember; _inUse = false; _oldControl = null; registerTransaction(ctx); }
ExplicitInterposition ei = new ExplicitInterposition(omgTpc, true); Transaction newTx = tm.getTransaction(); ei.unregisterTransaction();
ExplicitInterposition ei = new ExplicitInterposition(omgTpc, true); Transaction newTx = tm.getTransaction(); ei.unregisterTransaction();
/** * @message com.arjuna.ats.jts.exunregfail {0} - could not unregister from * transaction! */ public void finalize () { if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.DESTRUCTORS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "ExplicitInterposition.finalize ()"); } if (_inUse) { try { unregisterTransaction(); } catch (Exception e) { if (jtsLogger.loggerI18N.isWarnEnabled()) { jtsLogger.loggerI18N.warn("com.arjuna.ats.jts.exunregfail", new Object[] { "ExplicitInterposition.finalize" }); } } } }
/** * Create a new instance and interpose with the specified transaction. * Depending upon the value of the boolean parameter, remember any current * transaction that may be associated with the invoking thread so that it * can be restored once interposition has finished. */ public ExplicitInterposition (Control action, boolean remember) throws InterpositionFailed, SystemException { if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("ExplicitInterposition::ExplicitInterposition ( Control action, " + remember + " )"); } _remember = remember; _inUse = false; _oldControl = null; registerTransaction(action); }
/** * Create a new instance and interpose with the specified transaction. * Depending upon the value of the boolean parameter, remember any current * transaction that may be associated with the invoking thread so that it * can be restored once interposition has finished. */ public ExplicitInterposition (Control action, boolean remember) throws InterpositionFailed, SystemException { if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.CONSTRUCTORS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "ExplicitInterposition::ExplicitInterposition ( Control action, " + remember + " )"); } _remember = remember; _inUse = false; _oldControl = null; registerTransaction(action); }
/** * Create a new instance and interpose with the specified transaction. * Depending upon the value of the boolean parameter, remember any current * transaction that may be associated with the invoking thread so that it * can be restored once interposition has finished. */ public ExplicitInterposition (PropagationContext ctx, boolean remember) throws InterpositionFailed, SystemException { if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.CONSTRUCTORS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "ExplicitInterposition::ExplicitInterposition ( PropagationContext ctx, " + remember + " )"); } _remember = remember; _inUse = false; _oldControl = null; registerTransaction(ctx); }
registerTransaction(ctx); ctx = null;
registerTransaction(ctx); ctx = null;