Package com.arjuna.mw.wstx.exceptions

Examples of com.arjuna.mw.wstx.exceptions.TransactionRolledBackException


  try
  {
      if ((out.completedStatus().equals(Failure.instance()) ||
     out.completedStatus().equals(FailureOnly.instance())) && commit)
      {
    throw new TransactionRolledBackException();
      }
  }
  catch (SystemException ex)
  {
      throw new HeuristicHazardException();
  }

  if (out instanceof CoordinationOutcome)
  {
      int res = ((CoordinationOutcome) out).result();

      switch (res)
      {
      case TwoPhaseResult.CANCELLED:
      case TwoPhaseResult.HEURISTIC_CANCEL:
    {
        if (commit)
      throw new TransactionRolledBackException();
    }
    break;
      case TwoPhaseResult.CONFIRMED:
      case TwoPhaseResult.HEURISTIC_CONFIRM:
    {
View Full Code Here


  try
  {
      if ((out.completedStatus().equals(Failure.instance()) ||
     out.completedStatus().equals(FailureOnly.instance())) && commit)
      {
    throw new TransactionRolledBackException();
      }
  }
  catch (SystemException ex)
  {
      throw new HeuristicHazardException();
  }
 
  if (out instanceof CoordinationOutcome)
  {
      int res = ((CoordinationOutcome) out).result();

      switch (res)
      {
      case TwoPhaseResult.CANCELLED:
      case TwoPhaseResult.HEURISTIC_CANCEL:
    {
        if (commit)
      throw new TransactionRolledBackException();
    }
    break;
      case TwoPhaseResult.CONFIRMED:
      case TwoPhaseResult.HEURISTIC_CONFIRM:
    {
View Full Code Here

  try
  {
      if ((out.completedStatus().equals(Failure.instance()) ||
     out.completedStatus().equals(FailureOnly.instance())) && commit)
      {
    throw new TransactionRolledBackException();
      }
  }
  catch (SystemException ex)
  {
      throw new HeuristicHazardException();
  }
 
  if (out instanceof CoordinationOutcome)
  {
      int res = ((CoordinationOutcome) out).result();

      switch (res)
      {
      case TwoPhaseResult.CANCELLED:
      case TwoPhaseResult.HEURISTIC_CANCEL:
    {
        if (commit)
      throw new TransactionRolledBackException();
    }
    break;
      case TwoPhaseResult.CONFIRMED:
      case TwoPhaseResult.HEURISTIC_CONFIRM:
    {
View Full Code Here

TOP

Related Classes of com.arjuna.mw.wstx.exceptions.TransactionRolledBackException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.