Package org.omg.CosTransactions

Examples of org.omg.CosTransactions.HeuristicHazard


     
      if (_rollbackOptimization) // won't have rollback called on it
        removeConnection();
     
      if ((e1.errorCode == XAException.XAER_RMERR) || (e1.errorCode == XAException.XAER_RMFAIL))
        throw new HeuristicHazard();

      return Vote.VoteRollback;
    }
    catch (Exception e2)
    {
View Full Code Here


      case XAException.XAER_INVAL:
      case XAException.XAER_PROTO:
      case XAException.XAER_NOTA: // resource may have arbitrarily rolled back (shouldn't, but ...)
        return Vote.VoteRollback;
      default:
        throw new HeuristicHazard(); // we're not really sure (shouldn't get here though).
      }
    }
    catch (Exception e2)
    {
      if (jtaLogger.loggerI18N.isWarnEnabled())
View Full Code Here

      throw new HeuristicMixed()// will eventually get forget
  case TwoPhaseOutcome.HEURISTIC_HAZARD:
  default:
      if (TxControl.getMaintainHeuristics())
    destroyResource();
      throw new HeuristicHazard();
  }
    }
View Full Code Here

    destroyResource();
      throw new HeuristicMixed();
  case ActionStatus.H_HAZARD:
      if (TxControl.getMaintainHeuristics())
    destroyResource();
      throw new HeuristicHazard();
  default:
      destroyResource();
      break;
  }
    }
View Full Code Here

    destroyResource();
      throw new HeuristicMixed();
  case ActionStatus.H_HAZARD:
      if (TxControl.getMaintainHeuristics())
    destroyResource();
      throw new HeuristicHazard();
  default:
      destroyResource();
      break;
  }
    }
View Full Code Here

      throw new HeuristicMixed()// will eventually get forget
  case TwoPhaseOutcome.HEURISTIC_HAZARD:
  default:
      if (TxControl.getMaintainHeuristics())
    destroyResource();
      throw new HeuristicHazard();
  }
    }
View Full Code Here

    destroyResource();
      throw new HeuristicMixed();
  case ActionStatus.H_HAZARD:
      if (TxControl.getMaintainHeuristics())
    destroyResource();
      throw new HeuristicHazard();
  default:
      destroyResource();
      break;
  }
    }
View Full Code Here

    destroyResource();
      throw new HeuristicMixed();
  case ActionStatus.H_HAZARD:
      if (TxControl.getMaintainHeuristics())
    destroyResource();
      throw new HeuristicHazard();
  default:
      destroyResource();
      break;
  }
    }
View Full Code Here

      case XAException.XAER_INVAL:
      case XAException.XAER_PROTO:
      case XAException.XAER_NOTA: // resource may have arbitrarily rolled back (shouldn't, but ...)
        return Vote.VoteRollback;
      default:
        throw new HeuristicHazard(); // we're not really sure (shouldn't get here though).
      }
    }
    catch (Exception e2)
    {
      if (jtaLogger.loggerI18N.isWarnEnabled())
View Full Code Here

      case XAException.XAER_INVAL:
      case XAException.XAER_PROTO:
      case XAException.XAER_NOTA: // resource may have arbitrarily rolled back (shouldn't, but ...)
        return Vote.VoteRollback;
      default:
        throw new HeuristicHazard(); // we're not really sure (shouldn't get here though).
      }
    }
    catch (Exception e2)
    {
      if (jtaLogger.loggerI18N.isWarnEnabled())
View Full Code Here

TOP

Related Classes of org.omg.CosTransactions.HeuristicHazard

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.