Package org.omg.CORBA

Examples of org.omg.CORBA.TRANSACTION_ROLLEDBACK


            + Utility.stringStatus(currentStatus));
      }

      if (currentStatus == Status.StatusMarkedRollback)
      {
        throw new TRANSACTION_ROLLEDBACK(
            ExceptionCodes.MARKED_ROLLEDBACK,
            CompletionStatus.COMPLETED_NO);
      }
      else
        throw new Inactive();
View Full Code Here


    if (currentStatus != Status.StatusActive)
    {
      if (currentStatus == Status.StatusMarkedRollback)
      {
        throw new TRANSACTION_ROLLEDBACK(
            ExceptionCodes.MARKED_ROLLEDBACK,
            CompletionStatus.COMPLETED_NO);
      }
      else
        throw new Inactive();
View Full Code Here

              + Utility.stringStatus(currentStatus));
        }

        if (currentStatus == Status.StatusMarkedRollback)
        {
          throw new TRANSACTION_ROLLEDBACK(
              ExceptionCodes.MARKED_ROLLEDBACK,
              CompletionStatus.COMPLETED_NO);
        }
        else
          throw new Inactive();
View Full Code Here

    ///////////////////////////////////////////////////////////
   
    public static final int XA_RB = OMGVMCID.value + 1 ;
   
    public TRANSACTION_ROLLEDBACK xaRb( CompletionStatus cs, Throwable t ) {
        TRANSACTION_ROLLEDBACK exc = new TRANSACTION_ROLLEDBACK( XA_RB, cs ) ;
        if (t != null)
            exc.initCause( t ) ;
       
        if (logger.isLoggable( Level.WARNING )) {
            Object[] parameters = null ;
            doLog( Level.WARNING, "OMG.xaRb",
                parameters, OMGSystemException.class, exc ) ;
View Full Code Here

    }
   
    public static final int XA_NOTA = OMGVMCID.value + 2 ;
   
    public TRANSACTION_ROLLEDBACK xaNota( CompletionStatus cs, Throwable t ) {
        TRANSACTION_ROLLEDBACK exc = new TRANSACTION_ROLLEDBACK( XA_NOTA, cs ) ;
        if (t != null)
            exc.initCause( t ) ;
       
        if (logger.isLoggable( Level.WARNING )) {
            Object[] parameters = null ;
            doLog( Level.WARNING, "OMG.xaNota",
                parameters, OMGSystemException.class, exc ) ;
View Full Code Here

    }
   
    public static final int XA_END_TRUE_ROLLBACK_DEFERRED = OMGVMCID.value + 3 ;
   
    public TRANSACTION_ROLLEDBACK xaEndTrueRollbackDeferred( CompletionStatus cs, Throwable t ) {
        TRANSACTION_ROLLEDBACK exc = new TRANSACTION_ROLLEDBACK( XA_END_TRUE_ROLLBACK_DEFERRED, cs ) ;
        if (t != null)
            exc.initCause( t ) ;
       
        if (logger.isLoggable( Level.WARNING )) {
            Object[] parameters = null ;
            doLog( Level.WARNING, "OMG.xaEndTrueRollbackDeferred",
                parameters, OMGSystemException.class, exc ) ;
View Full Code Here

           */

          if ((e1.errorCode >= XAException.XA_RBBASE)
              && (e1.errorCode <= XAException.XA_RBEND))
          {
            throw new TRANSACTION_ROLLEDBACK();
          }
         
          switch (e1.errorCode)
          {
          case XAException.XA_HEURHAZ:
          case XAException.XA_HEURMIX:
            updateState(TwoPhaseOutcome.HEURISTIC_HAZARD);

            throw new org.omg.CosTransactions.HeuristicHazard();
          case XAException.XA_HEURCOM:
            handleForget() ;
            break;
          case XAException.XA_HEURRB:
          case XAException.XA_RBROLLBACK:
          case XAException.XA_RBCOMMFAIL:
          case XAException.XA_RBDEADLOCK:
          case XAException.XA_RBINTEGRITY:
          case XAException.XA_RBOTHER:
          case XAException.XA_RBPROTO:
          case XAException.XA_RBTIMEOUT:
          case XAException.XA_RBTRANSIENT:
          case XAException.XAER_RMERR:
            handleForget() ;
            throw new TRANSACTION_ROLLEDBACK();
          case XAException.XAER_NOTA:
          case XAException.XAER_PROTO:
            break;
          case XAException.XAER_INVAL:
          case XAException.XAER_RMFAIL: // resource manager failed,
View Full Code Here

/* 464 */     if ((e instanceof AccessException))
/* 465 */       throw new NO_PERMISSION(e.toString());
/* 466 */     if ((e instanceof TransactionRequiredException))
/* 467 */       throw new TRANSACTION_REQUIRED(e.toString());
/* 468 */     if ((e instanceof TransactionRolledbackException))
/* 469 */       throw new TRANSACTION_ROLLEDBACK(e.toString());
/* 470 */     if ((e instanceof InvalidTransactionException))
/* 471 */       throw new INVALID_TRANSACTION(e.toString());
/*     */   }
View Full Code Here

                if (log.isDebugEnabled()) log.debug("Calling " + method.getName());

                return methodProxy.invoke(delegate.getDelegate(), args);
            } catch (TransactionRolledbackException e) {
                log.debug("TransactionRolledbackException", e);
                throw new TRANSACTION_ROLLEDBACK(e.toString()).initCause(e);
            } catch (TransactionRequiredException e) {
                log.debug("TransactionRequiredException", e);
                throw new TRANSACTION_REQUIRED(e.toString()).initCause(e);
            } catch (InvalidTransactionException e) {
                log.debug("InvalidTransactionException", e);
View Full Code Here

                        throw cause;
                    }
                }
            } catch (TransactionRolledbackException e) {
                log.debug("TransactionRolledbackException", e);
                throw (SystemException)new TRANSACTION_ROLLEDBACK(e.toString()).initCause(e);
            } catch (TransactionRequiredException e) {
                log.debug("TransactionRequiredException", e);
                throw (SystemException)new TRANSACTION_REQUIRED(e.toString()).initCause(e);
            } catch (InvalidTransactionException e) {
                log.debug("InvalidTransactionException", e);
View Full Code Here

TOP

Related Classes of org.omg.CORBA.TRANSACTION_ROLLEDBACK

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.