Tabnine Logo
SubordinateBACoordinator.complete
Code IndexAdd Tabnine to your IDE (free)

How to use
complete
method
in
com.arjuna.mwlabs.wscf.model.sagas.arjunacore.subordinate.SubordinateBACoordinator

Best Java code snippets using com.arjuna.mwlabs.wscf.model.sagas.arjunacore.subordinate.SubordinateBACoordinator.complete (Showing top 3 results out of 315)

origin: org.jboss.jbossts.xts/jbossxts

public void complete() throws WrongStateException, SystemException {
  if (!recovered) {
    // the coordinator will send complete to all participants and then
    // also run phase one commit. the former may throw an exception.
    // if the latter succeeds the tx state will be COMMITTING whereas
    // if it fails it will be ABORTED.
    try {
      coordinator.complete();
    } catch (com.arjuna.mw.wsas.exceptions.WrongStateException wse) {
      throw new WrongStateException(wse.getMessage());
    } catch (com.arjuna.mw.wsas.exceptions.SystemException se) {
      throw new SystemException(se.getMessage());
    }
    // if status is COMMITTING then we return allowing the participant to be logged
    // if status is ABORTED then the participant must fail avoiding any logging
    if (coordinator.status() == ActionStatus.ABORTED) {
      manager.fail(BusinessActivityConstants.WSBA_ELEMENT_FAIL_QNAME);
    } else {
      // null out the manager so we don't attempt to save it to the log
      manager = null;
    }
  } else {
    // we should never get asked to complete a recovered activity
    throw new WrongStateException();
  }
}
origin: org.jboss.jbossts/jbossxts

public void complete() throws WrongStateException, SystemException {
  if (!recovered) {
    // the coordinator will send complete to all participants and then
    // also run phase one commit. the former may throw an exception.
    // if the latter succeeds the tx state will be COMMITTING whereas
    // if it fails it will be ABORTED.
    try {
      coordinator.complete();
    } catch (com.arjuna.mw.wsas.exceptions.WrongStateException wse) {
      throw new WrongStateException(wse.getMessage());
    } catch (com.arjuna.mw.wsas.exceptions.SystemException se) {
      throw new SystemException(se.getMessage());
    }
    // if status is COMMITTING then we return allowing the participant to be logged
    // if status is ABORTED then the participant must fail avoiding any logging
    if (coordinator.status() == ActionStatus.ABORTED) {
      manager.fail(BusinessActivityConstants.WSBA_ELEMENT_FAIL_QNAME);
    } else {
      // null out the manager so we don't attempt to save it to the log
      manager = null;
    }
  } else {
    // we should never get asked to complete a recovered activity
    throw new WrongStateException();
  }
}
origin: org.jboss.jbossts.xts/ws-t11

public void complete() throws WrongStateException, SystemException {
  if (!recovered) {
    // the coordinator will send complete to all participants and then
    // also run phase one commit. the former may throw an exception.
    // if the latter succeeds the tx state will be COMMITTING whereas
    // if it fails it will be ABORTED.
    try {
      coordinator.complete();
    } catch (com.arjuna.mw.wsas.exceptions.WrongStateException wse) {
      throw new WrongStateException(wse.getMessage());
    } catch (com.arjuna.mw.wsas.exceptions.SystemException se) {
      throw new SystemException(se.getMessage());
    }
    // if status is COMMITTING then we return allowing the participant to be logged
    // if status is ABORTED then the participant must fail avoiding any logging
    if (coordinator.status() == ActionStatus.ABORTED) {
      manager.fail(BusinessActivityConstants.WSBA_ELEMENT_FAIL_QNAME);
    } else {
      // null out the manager so we don't attempt to save it to the log
      manager = null;
    }
  } else {
    // we should never get asked to complete a recovered activity
    throw new WrongStateException();
  }
}
com.arjuna.mwlabs.wscf.model.sagas.arjunacore.subordinateSubordinateBACoordinatorcomplete

Javadoc

this is driven by a coordinator-completion participant registered on behalf of the coordinator and is required to propagate the complete to all registered coordinator-completion participants.

Popular methods of SubordinateBACoordinator

  • get_uid
  • cancel
    this is driven by a coordinator-completion participant registered on behalf of the coordinator and i
  • getRecoveredCoordinator
  • activate
  • addActiveProxy
  • addCallback
    register a callback to be called when a subordinate transaction with a specific key executes a commi
  • addRecoveredCoordinator
  • close
    this is driven by a coordinator-completion participant registered on behalf of the coordinator and i
  • delistParticipant
  • enlistParticipant
  • getCoordinatorCompletionParticipantid
    return a uid for the corodinator completion participant registered on behalf of this coordinator
  • isActivated
  • getCoordinatorCompletionParticipantid,
  • isActivated,
  • isOrphaned,
  • listRecoveredCoordinators,
  • participantCannotComplete,
  • participantCompleted,
  • participantFaulted,
  • phase2Abort,
  • removeActiveProxy

Popular in Java

  • Making http requests using okhttp
  • onCreateOptionsMenu (Activity)
  • findViewById (Activity)
  • putExtra (Intent)
  • Permission (java.security)
    Legacy security code; do not use.
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JCheckBox (javax.swing)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now