public void afterCompletion (int status) throws SystemException { try { _theRegistrar.disassociate(_cleanupId); } catch (Exception ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } }
public void afterCompletion (int status) throws SystemException { try { _theRegistrar.disassociate(_cleanupId); } catch (Exception ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } }
public void afterCompletion (int status) throws SystemException { try { _theRegistrar.disassociate(_cleanupId); } catch (Exception ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } }
public void afterCompletion (int status) throws SystemException { try { _theRegistrar.disassociate(_cleanupId); } catch (Exception ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } }
public void afterCompletion (int status) throws SystemException { try { _theRegistrar.disassociate(_cleanupId); } catch (Exception ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } }
public void afterCompletion (int status) throws SystemException { try { _theRegistrar.disassociate(_cleanupId); } catch (Exception ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } }
/** * @return the status value. */ public String status () throws SystemException { try { if (_resource != null) { return _resource.status(); } else throw new SystemException("InvalidParticipant"); } catch (com.arjuna.wst.SystemException ex) { throw new SystemException(ex.toString()); } }
public void participantCannotComplete (String participantId) throws NoActivityException, InvalidParticipantException, WrongStateException, SystemException { _coordManager.participantCannotComplete(participantId); try { setCancelOnly(); } catch (Exception ex) { throw new SystemException(ex.toString()); } }
public void participantFaulted (String participantId) throws NoActivityException, InvalidParticipantException, SystemException { _coordManager.participantFaulted(participantId); try { setCancelOnly(); } catch (Exception ex) { throw new SystemException(ex.toString()); } }
public void participantCannotComplete (String participantId) throws NoActivityException, InvalidParticipantException, WrongStateException, SystemException { _coordManager.participantCannotComplete(participantId); try { setCancelOnly(); } catch (Exception ex) { throw new SystemException(ex.toString()); } }
public void participantFaulted (String participantId) throws NoActivityException, InvalidParticipantException, SystemException { _coordManager.participantFaulted(participantId); try { setCancelOnly(); } catch (Exception ex) { throw new SystemException(ex.toString()); } }
public synchronized void participantReadOnly (String participantId) throws InvalidParticipantException, SystemException { if (participantId == null) throw new SystemException( wscfLogger.i18NLogger.get_model_twophase_arjunacore_ATCoordinator_2()); if (status() == ActionStatus.RUNNING) { changeParticipantStatus(participantId, READONLY); } else throw new SystemException( wscfLogger.i18NLogger.get_model_twophase_arjunacore_ATCoordinator_3()); }
public synchronized void participantReadOnly (String participantId) throws InvalidParticipantException, SystemException { if (participantId == null) throw new SystemException( wscfLogger.i18NLogger.get_model_twophase_arjunacore_ATCoordinator_2()); if (status() == ActionStatus.RUNNING) { changeParticipantStatus(participantId, READONLY); } else throw new SystemException( wscfLogger.i18NLogger.get_model_twophase_arjunacore_ATCoordinator_3()); }
private final ActivityHandleImple currentActivity () throws SystemException { try { ActivityHierarchy hier = UserActivityFactory.userActivity().currentActivity(); if (hier.size() > 0) return (ActivityHandleImple) hier.activity(hier.size() -1); else return null; } catch (Exception ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } }
private final ActivityHandleImple currentActivity () throws SystemException { try { ActivityHierarchy hier = UserActivityFactory.userActivity().currentActivity(); if (hier.size() > 0) return (ActivityHandleImple) hier.activity(hier.size() - 1); else return null; } catch (Exception ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } }
private final ActivityHandleImple currentActivity () throws SystemException { try { ActivityHierarchy hier = UserActivityFactory.userActivity().currentActivity(); if (hier.size() > 0) return (ActivityHandleImple) hier.activity(hier.size() -1); else return null; } catch (Exception ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } }
private final ActivityHandleImple currentActivity () throws SystemException { try { ActivityHierarchy hier = UserActivityFactory.userActivity().currentActivity(); if (hier.size() > 0) return (ActivityHandleImple) hier.activity(hier.size() - 1); else return null; } catch (Exception ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } }
public synchronized void participantRolledBack (String participantId) throws InvalidParticipantException, WrongStateException, SystemException { if (participantId == null) throw new SystemException( wscfLogger.i18NLogger.get_model_twophase_arjunacore_ATCoordinator_2()); if (status() == ActionStatus.RUNNING) changeParticipantStatus(participantId, ROLLEDBACK); else throw new WrongStateException(); }
public synchronized void participantRolledBack (String participantId) throws InvalidParticipantException, WrongStateException, SystemException { if (participantId == null) throw new SystemException( wscfLogger.i18NLogger.get_model_twophase_arjunacore_ATCoordinator_2()); if (status() == ActionStatus.RUNNING) changeParticipantStatus(participantId, ROLLEDBACK); else throw new WrongStateException(); }
public final Object createSubordinate () throws NoActivityException, InvalidProtocolException, SystemException { try { CoordinatorServiceImple coordManager = (CoordinatorServiceImple) _coordManager; BACoordinator subordinateTransaction = coordManager.createSubordinate(); /* * Now add the registrar for this specific coordinator to the * mapper. */ subordinateTransaction.enlistSynchronization(new CleanupSynchronization(subordinateTransaction.get_uid().stringForm(), _theRegistrar)); _theRegistrar.associate(subordinateTransaction); return subordinateTransaction; } catch (Exception ex) { throw new SystemException(ex.toString()); } }