Refine search
private final void resumeTransaction () { if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("TopLevelTransaction::resumeTransaction for " + _originalTransaction); } try { if (_originalTransaction != null) { CurrentImple current = OTSImpleManager.current(); current.resume(_originalTransaction); _originalTransaction = null; } } catch (Exception e) { } }
private void suspendContext (ServerRequestInfo request_info) throws SystemException, InvalidSlot if (jtsLogger.logger.isTraceEnabled()) ControlWrapper ctx = OTSImpleManager.current().contextManager().popAction(threadId); OTSImpleManager.current().contextManager().purgeActions(threadId);
/** * Set the transaction timeout. This is the same as calling * org.omg.CosTransactions.Current.set_timeout(). */ public void set_timeout (int seconds) throws SystemException { if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("AtomicTransaction::set_timeout ( " + seconds + " )"); } CurrentImple current = OTSImpleManager.current(); if (current != null) current.set_timeout(seconds); else throw new UNKNOWN(); }
private void suspendContext (ServerRequestInfo request_info) throws SystemException, InvalidSlot if (jtsLogger.logger.isTraceEnabled()) ControlWrapper ctx = OTSImpleManager.current().contextManager().popAction(threadId); OTSImpleManager.current().contextManager().purgeActions(threadId);
/** * Resume this transaction. * * @exception org.omg.CosTransactions.InvalidControl * if this transaction is invalid. */ public void resume () throws InvalidControl, SystemException { if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("AtomicTransaction::resume called for " + _theAction); } synchronized (_theStatus) { if (_theAction == null) throw new InvalidControl(); } OTSImpleManager.current().resumeWrapper(_theAction); }
public void send_request (ClientRequestInfo request_info) throws SystemException if (jtsLogger.logger.isTraceEnabled()) ControlWrapper theControl = OTSImpleManager.current().contextManager().current(threadId);
/** * @return the timeout associated with transactions created by the current * thread. */ public int get_timeout () throws SystemException { CurrentImple current = OTSImpleManager.current(); if (current != null) { int val = current.get_timeout(); if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("AtomicTransaction::get_timeout returning " + val); } return val; } else throw new UNKNOWN(); }
/** * If nested top-level transaction, save current context for resumption * later. */ public synchronized void begin () throws SystemException, SubtransactionsUnavailable { if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("TopLevelTransaction::begin ()"); } // already begun? if (_originalTransaction != null) { throw new INVALID_TRANSACTION(); } CurrentImple current = OTSImpleManager.current(); _originalTransaction = current.suspend(); if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("TopLevelTransaction::begin - suspend transaction " + _originalTransaction); } super.begin(); }
if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("AtomicTransaction::begin ()"); CurrentImple current = OTSImpleManager.current(); if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("AtomicTransaction::begin create " + _theAction);
if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("ExplicitInterposition::unregisterTransaction ()"); Control control = OTSImpleManager.current().suspend(); OTSImpleManager.current().resumeWrapper(_oldControl); _oldControl = null;
if (jbossatxLogger.logger.isTraceEnabled()) { jbossatxLogger.logger.trace("PropagationContextManager.getTransactionPropagationContext - called"); theControl = OTSImpleManager.current().contextManager().current( threadId); theControl = OTSImpleManager.current().contextManager().current(); PropagationContextWrapper pcw = new PropagationContextWrapper(cxt); if (jbossatxLogger.logger.isTraceEnabled()) { jbossatxLogger.logger.trace("PropagationContextManager.getTransactionPropagationContext() - returned tpc = " + pcw);
if (jbossatxLogger.logger.isTraceEnabled()) { jbossatxLogger.logger.trace("PropagationContextManager.getTransactionPropagationContext - called"); theControl = OTSImpleManager.current().contextManager().current( threadId); theControl = OTSImpleManager.current().contextManager().current(); PropagationContextWrapper pcw = new PropagationContextWrapper(cxt); if (jbossatxLogger.logger.isTraceEnabled()) { jbossatxLogger.logger.trace("PropagationContextManager.getTransactionPropagationContext() - returned tpc = " + pcw);
SystemException if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("AtomicTransaction::suspend called for " + _theAction); _theAction = OTSImpleManager.current().suspendWrapper();
protected void doAfterCompletion (org.omg.CosTransactions.Status myStatus) throws SystemException if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("ArjunaTransactionImple::doAfterCompletion for " + get_uid()); cw = OTSImpleManager.current().getControlWrapper(); OTSImpleManager.current().resumeImple(controlHandle); if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("ArjunaTransactionImple.doAfterCompletion - caught exception " + e); OTSImpleManager.current().resumeWrapper(cw); else OTSImpleManager.current().suspend();
throws InterpositionFailed, SystemException if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("ExplicitInterposition::registerTransaction ( Control action )"); OTSImpleManager.current().resume((Control) null);
public void rollback () throws NoTransaction, WrongTransaction, SystemException if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("AtomicTransaction::rollback for " + _theAction); CurrentImple current = OTSImpleManager.current();
protected void doBeforeCompletion () throws SystemException if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("ArjunaTransactionImple::doBeforeCompletion for " + get_uid()); cw = OTSImpleManager.current().getControlWrapper(); OTSImpleManager.current().resumeImple(controlHandle); OTSImpleManager.current().resumeWrapper(cw); else OTSImpleManager.current().suspend();
private void suspendContext (ServerRequestInfo request_info) throws SystemException, InvalidSlot if (jtsLogger.logger.isTraceEnabled()) jtsLogger.logger.trace("ContextServerRequestInterceptorImpl.suspendContext ( "+request_info.operation()+" )"); ControlWrapper ctx = OTSImpleManager.current().contextManager().popAction(threadId); OTSImpleManager.current().contextManager().purgeActions(threadId);
public void commit (boolean report_heuristics) throws NoTransaction, HeuristicMixed, HeuristicHazard, WrongTransaction, SystemException if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("AtomicTransaction::commit ( " + report_heuristics + " ) for " + _theAction); CurrentImple current = OTSImpleManager.current();
private void suspendContext (ServerRequestInfo request_info) throws SystemException, InvalidSlot if (jtsLogger.logger.isTraceEnabled()) jtsLogger.logger.trace("ContextServerRequestInterceptorImpl.suspendContext ( "+request_info.operation()+" )"); ControlWrapper ctx = OTSImpleManager.current().contextManager().popAction(threadId); OTSImpleManager.current().contextManager().purgeActions(threadId);