/** * Register the specified subtransaction aware resource with this * transaction. This transaction must be a subtransaction. * * @exception org.omg.CosTransactions.Inactive * if this transaction is no longer in the active phase. * * @exception org.omg.CosTransactions.NotSubtransaction * if this transaction is not a subtransaction. */ public void registerSubtranAware (SubtransactionAwareResource r) throws Inactive, NotSubtransaction, SystemException { if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("AtomicTransaction::registerSubtranAware ( " + r + " )"); } synchronized (_theStatus) { if (_theAction == null) { throw new Inactive(); } } _theAction.register_subtran_aware(r); }
/** * Register the specified subtransaction aware resource with this * transaction. This transaction must be a subtransaction. * * @exception org.omg.CosTransactions.Inactive * if this transaction is no longer in the active phase. * * @exception org.omg.CosTransactions.NotSubtransaction * if this transaction is not a subtransaction. */ public void registerSubtranAware (SubtransactionAwareResource r) throws Inactive, NotSubtransaction, SystemException { if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "AtomicTransaction::registerSubtranAware ( " + r + " )"); } synchronized (_theStatus) { if (_theAction == null) { throw new Inactive(); } } _theAction.register_subtran_aware(r); }