Examples of INVALID_TRANSACTION


Examples of org.omg.CORBA.INVALID_TRANSACTION

            } catch (TransactionRequiredException e) {
                log.debug("TransactionRequiredException", e);
                throw new TRANSACTION_REQUIRED(e.toString());
            } catch (InvalidTransactionException e) {
                log.debug("InvalidTransactionException", e);
                throw new INVALID_TRANSACTION(e.toString());
            } catch (NoSuchObjectException e) {
                log.debug("NoSuchObjectException", e);
                throw new OBJECT_NOT_EXIST(e.toString());
            } catch (AccessException e) {
                log.debug("AccessException", e);
View Full Code Here

Examples of org.omg.CORBA.INVALID_TRANSACTION

            } catch (TransactionRequiredException e) {
                log.debug("TransactionRequiredException", e);
                throw new TRANSACTION_REQUIRED(e.toString());
            } catch (InvalidTransactionException e) {
                log.debug("InvalidTransactionException", e);
                throw new INVALID_TRANSACTION(e.toString());
            } catch (NoSuchObjectException e) {
                log.debug("NoSuchObjectException", e);
                throw new OBJECT_NOT_EXIST(e.toString());
            } catch (AccessException e) {
                log.debug("AccessException", e);
View Full Code Here

Examples of org.omg.CORBA.INVALID_TRANSACTION

      /*
       * 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

Examples of org.omg.CORBA.INVALID_TRANSACTION

      /*
       * 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

Examples of org.omg.CORBA.INVALID_TRANSACTION

    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

Examples of org.omg.CORBA.INVALID_TRANSACTION

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

Examples of org.omg.CORBA.INVALID_TRANSACTION

            } catch (TransactionRequiredException e) {
                log.debug("TransactionRequiredException", e);
                throw (SystemException)new TRANSACTION_REQUIRED(e.toString()).initCause(e);
            } catch (InvalidTransactionException e) {
                log.debug("InvalidTransactionException", e);
                throw (SystemException)new INVALID_TRANSACTION(e.toString()).initCause(e);
            } catch (NoSuchObjectException e) {
                log.debug("NoSuchObjectException", e);
                throw (SystemException)new OBJECT_NOT_EXIST(e.toString()).initCause(e);
            } catch (AccessException e) {
                log.debug("AccessException", e);
View Full Code Here

Examples of org.omg.CORBA.INVALID_TRANSACTION

      /*
       * 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

Examples of org.omg.CORBA.INVALID_TRANSACTION

      /*
       * 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

Examples of org.omg.CORBA.INVALID_TRANSACTION

    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
TOP
Copyright © 2018 www.massapi.com. 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.