public ControlWrapper create_subtransaction () throws Unavailable, Inactive, SubtransactionsUnavailable, SystemException { Coordinator coord = null; try { coord = get_coordinator(); } catch (SystemException e) { coord = null; } if (coord != null) { return new ServerControlWrapper(coord.create_subtransaction()); } else { if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("ServerControlWrapper::create_subtransaction - subtransaction parent is inactive."); } throw new INVALID_TRANSACTION( ExceptionCodes.UNAVAILABLE_COORDINATOR, CompletionStatus.COMPLETED_NO); } }
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); } }
public ControlWrapper create_subtransaction () throws Unavailable, Inactive, SubtransactionsUnavailable, SystemException { Coordinator coord = null; try { coord = get_coordinator(); } catch (SystemException e) { coord = null; } if (coord != null) { return new ServerControlWrapper(coord.create_subtransaction()); } else { if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "ServerControlWrapper::create_subtransaction - subtransaction parent is inactive."); } throw new INVALID_TRANSACTION( ExceptionCodes.UNAVAILABLE_COORDINATOR, CompletionStatus.COMPLETED_NO); } }
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); } }
Control control = coord.create_subtransaction();
Control control = coord.create_subtransaction();