private static ControlWrapper createControlWrapper(String ior) { org.omg.CORBA.Object obj = ORBManager.getORB().orb().string_to_object(ior); Control control = org.omg.CosTransactions.ControlHelper.narrow(obj); if (control == null) log.warn("createProxy: ior not a control"); return new ControlWrapper(control); }
hier.push(new ControlWrapper(curr));
hier.push(new ControlWrapper(parentControl));
public ControlWrapper create_subtransaction () throws Unavailable, Inactive, SubtransactionsUnavailable, SystemException { Coordinator coord = null; try { coord = ((_control != null) ? _control.get_coordinator() : _controlImpl.get_coordinator()); } catch (SystemException e) { coord = null; } if (coord != null) { return new ControlWrapper(coord.create_subtransaction()); } else { if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("ControlWrapper::create_subtransaction - subtransaction parent is inactive."); } throw new INVALID_TRANSACTION( ExceptionCodes.UNAVAILABLE_COORDINATOR, CompletionStatus.COMPLETED_NO); } }
reaper.insert(new ControlWrapper((ControlImple) tranControl), theTimeout);
pushAction(new ControlWrapper(theControl)); // takes care of thread/BasicAction for us.
ControlWrapper wrap = new ControlWrapper(which);
hier.push(new ControlWrapper(curr));
hier.push(new ControlWrapper(parentControl));
return new ControlWrapper(theFactory.recreateLocal(theContext)); return new ControlWrapper(theFactory.recreate(theContext));
public ControlWrapper create_subtransaction () throws Unavailable, Inactive, SubtransactionsUnavailable, SystemException { Coordinator coord = null; try { coord = ((_control != null) ? _control.get_coordinator() : _controlImpl.get_coordinator()); } catch (SystemException e) { coord = null; } if (coord != null) { return new ControlWrapper(coord.create_subtransaction()); } else { if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "ControlWrapper::create_subtransaction - subtransaction parent is inactive."); } throw new INVALID_TRANSACTION( ExceptionCodes.UNAVAILABLE_COORDINATOR, CompletionStatus.COMPLETED_NO); } }
currentAction = new ControlWrapper( OTSImpleManager.factory().createLocal(get_timeout())); else currentAction = new ControlWrapper( OTSImpleManager.get_factory().create(get_timeout()));
reaper.insert(new ControlWrapper((ControlImple) tranControl), theTimeout);
ControlWrapper wrap = new ControlWrapper(which);
return new ControlWrapper(theFactory.recreateLocal(theContext)); return new ControlWrapper(theFactory.recreate(theContext));
throw new BAD_PARAM(); return new ControlWrapper(TransactionFactoryImple.createProxy(theCoordinator, null));
pushAction(new ControlWrapper(theControl)); // takes care of thread/BasicAction for us.
throw new BAD_PARAM(); return new ControlWrapper(TransactionFactoryImple.createProxy(theCoordinator, null));
currentAction = new ControlWrapper( OTSImpleManager.factory().createLocal(get_timeout())); else currentAction = new ControlWrapper( OTSImpleManager.get_factory().create(get_timeout()));
ControlWrapper wrap = new ControlWrapper(cont);