Package org.omg.CORBA

Examples of org.omg.CORBA.INVALID_TRANSACTION


      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);
    }
  }
View Full Code Here


      {
        currentAction = currentAction.create_subtransaction();
      }
      catch (Unavailable ex)
      {
        throw new INVALID_TRANSACTION(
            ExceptionCodes.UNAVAILABLE_COORDINATOR,
            CompletionStatus.COMPLETED_NO);
      }
      catch (Inactive e)
      {
        throw new INVALID_TRANSACTION(
            ExceptionCodes.INACTIVE_TRANSACTION,
            CompletionStatus.COMPLETED_NO);
      }
      catch (NO_MEMORY nme)
      {
        System.gc();

        throw nme;
      }
      catch (SystemException sysEx)
      {
        throw new INVALID_TRANSACTION(
            ExceptionCodes.INACTIVE_TRANSACTION,
            CompletionStatus.COMPLETED_NO);
      }
      catch (OutOfMemoryError me)
      {
View Full Code Here

         * will no longer be valid.
         */

        _theManager.popAction();

        throw new INVALID_TRANSACTION();
      }
    }
    else
      throw new NoTransaction();
  }
View Full Code Here

         * If no terminator then not allowed!
         */

        _theManager.popAction();

        throw new INVALID_TRANSACTION();
      }
    }
    else
      throw new NoTransaction();
  }
View Full Code Here

      {
        currentAction.rollback_only();
      }
      catch (org.omg.CosTransactions.Inactive exc)
      {
        throw new INVALID_TRANSACTION(
            ExceptionCodes.INACTIVE_TRANSACTION,
            CompletionStatus.COMPLETED_NO);
      }
      catch (SystemException e)
      {
View Full Code Here

      /*
       * Differentiate between us committing the transaction and some
       * other thread doing it.
       */

      throw new INVALID_TRANSACTION(0, CompletionStatus.COMPLETED_NO);
    }

    switch (outcome)
    {
    case ActionStatus.COMMITTED:
View Full Code Here

      /*
       * Differentiate between us ending the transaction and some other
       * thread doing it.
       */

      throw new INVALID_TRANSACTION(0, CompletionStatus.COMPLETED_NO); // means
                                       // transaction
                                       // already
                                       // terminated.
    }

    switch (status)
    {
    case ActionStatus.ABORTING:
    case ActionStatus.ABORTED:
    case ActionStatus.H_ROLLBACK:
      /*
       * If the transaction has already rolledback then silently ignore
       * the multiple rollback attempts.
       */
      return;
    case ActionStatus.PREPARING: // shouldn't be able to get heuristics or
                   // any of these!
    case ActionStatus.PREPARED:
    case ActionStatus.COMMITTING:
    case ActionStatus.COMMITTED:
    case ActionStatus.H_COMMIT:
    case ActionStatus.H_MIXED:
    case ActionStatus.H_HAZARD:
      throw new INVALID_TRANSACTION(0, CompletionStatus.COMPLETED_NO); // means
                                       // transaction
                                       // already
                                       // terminated.
    case ActionStatus.INVALID:
    case ActionStatus.CLEANUP:
View Full Code Here

    if (registerIn.add(corbaRec) != AddOutcome.AR_ADDED)
    {
      corbaRec = null;

      throw new INVALID_TRANSACTION(ExceptionCodes.ADD_FAILED,
          CompletionStatus.COMPLETED_NO);
    }
    else
    {
      if (jtsLogger.logger.isDebugEnabled())
View Full Code Here

    if (determineStatus(this) != Status.StatusPrepared)
    {
      if (!preventCommit())
      {
        throw new INVALID_TRANSACTION(
            ExceptionCodes.INACTIVE_TRANSACTION,
            CompletionStatus.COMPLETED_NO);
      }
    }
    else
View Full Code Here

      /*
       * Differentiate between us committing the transaction and some
       * other thread doing it.
       */

      throw new INVALID_TRANSACTION(0, CompletionStatus.COMPLETED_NO);
    }

    switch (outcome)
    {
    case ActionStatus.COMMITTED:
View Full Code Here

TOP

Related Classes of org.omg.CORBA.INVALID_TRANSACTION

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.