public void finalize () throws Throwable { if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("ControlImple.finalize ()"); } if (!_destroyed) { try { destroy(); } catch (Exception e) { } } tidyup(); /* * Do this here rather than in tidyup so anyone else with a reference to * this control can continue to determine the status of the transaction * until the control is garbage collected. */ _theTerminator = null; _theCoordinator = null; _theUid = null; }
public synchronized void destroy () throws ActiveTransaction, ActiveThreads, BadControl, Destroyed, SystemException { if (super._destroyed) throw new Destroyed(); /* * We are about to delete ourself (!) so make sure we don't using * anything on the stack after this point. This includes returning * variables. */ try { if (_isWrapper) { _transactionHandle = null; } super.destroy(); } catch (BAD_PARAM e) { // already destroyed } catch (Destroyed de) { // already destroyed } catch (Exception e) { jtsLogger.i18NLogger.warn_orbspecific_interposition_destfailed("ServerControl", e); } }
public void finalize () throws Throwable { if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.DESTRUCTORS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "ControlImple.finalize ()"); } if (!_destroyed) { try { destroy(); } catch (Exception e) { } } tidyup(); /* * Do this here rather than in tidyup so anyone else with a reference to * this control can continue to determine the status of the transaction * until the control is garbage collected. */ _theTerminator = null; _theCoordinator = null; _theUid = null; }
control.destroy();