Package javax.transaction

Examples of javax.transaction.TransactionRolledbackException


/*     */
/* 239 */     if (((e instanceof TransactionRolledbackLocalException)) || ((e instanceof TransactionRolledbackException)))
/*     */     {
/* 244 */       if ((isLocal) && ((e instanceof TransactionRolledbackException)))
/*     */       {
/* 246 */         TransactionRolledbackException remoteTxRollback = (TransactionRolledbackException)e;
/*     */         Exception cause;
/*     */         Exception cause;
/* 250 */         if ((remoteTxRollback.detail instanceof Exception))
/*     */         {
/* 252 */           cause = (Exception)remoteTxRollback.detail;
/*     */         }
/*     */         else
/*     */         {
/*     */           Exception cause;
/* 254 */           if ((remoteTxRollback.detail instanceof Error))
/*     */           {
/* 256 */             String msg = formatException("Unexpected Error", remoteTxRollback.detail);
/*     */
/* 259 */             cause = new EJBException(msg);
/*     */           }
/*     */           else
/*     */           {
/* 263 */             String msg = formatException("Unexpected Throwable", remoteTxRollback.detail);
/*     */
/* 266 */             cause = new EJBException(msg);
/*     */           }
/*     */         }
/* 269 */         e = new JBossTransactionRolledbackLocalException(remoteTxRollback.getMessage(), cause);
/*     */       }
/*     */
/* 276 */       if ((!isLocal) && ((e instanceof TransactionRolledbackLocalException)))
/*     */       {
/* 278 */         TransactionRolledbackLocalException localTxRollback = (TransactionRolledbackLocalException)e;
View Full Code Here


        return delegate.wrapException(obj);
    }

    public RemoteException mapSystemException(SystemException ex) {
        if (ex instanceof TRANSACTION_ROLLEDBACK) {
            TransactionRolledbackException transactionRolledbackException = new TransactionRolledbackException(ex.getMessage());
            transactionRolledbackException.detail = ex;
            return transactionRolledbackException;
        }
        if (ex instanceof TRANSACTION_REQUIRED) {
            TransactionRequiredException transactionRequiredException = new TransactionRequiredException(ex.getMessage());
View Full Code Here

        } else if (ex instanceof TRANSACTION_REQUIRED) {
            RemoteException newEx = new TransactionRequiredException(message);
            newEx.detail = ex;
            return newEx;
        } else if (ex instanceof TRANSACTION_ROLLEDBACK) {
            RemoteException newEx = new TransactionRolledbackException(message);
            newEx.detail = ex;
            return newEx;
        } else if (ex instanceof INVALID_TRANSACTION) {
            RemoteException newEx = new InvalidTransactionException(message);
            newEx.detail = ex;
View Full Code Here

TOP

Related Classes of javax.transaction.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.