Examples of TransactionRolledbackException


Examples of javax.jms.TransactionRolledBackException

        // delisting
        try {
            TransactionContextHelper.delistFromCurrentTransaction(this);
        }
        catch (BitronixRollbackSystemException ex) {
            throw (JMSException) new TransactionRolledBackException("unilateral rollback of " + this).initCause(ex);
        }
        catch (SystemException ex) {
            throw (JMSException) new JMSException("error delisting " + this).initCause(ex);
        }
        finally {
View Full Code Here

Examples of javax.jms.TransactionRolledBackException

            if (numberNotReplayed > 0) {
                String message = "rolling back transaction ("
                    + previouslyDeliveredMessages.transactionId + ") post failover recovery. " + numberNotReplayed
                    + " previously delivered message(s) not replayed to consumer: " + this.getConsumerId();
                LOG.warn(message);
                throw new TransactionRolledBackException(message);
            }
        }
    }
View Full Code Here

Examples of javax.jms.TransactionRolledBackException

            //Check that we are clean to commit.
            if (_failedOverDirty)
            {
                rollback();

                throw new TransactionRolledBackException("Connection failover has occured since last send. " +
                                                         "Forced rollback");
            }


            // Acknowledge all delivered messages
View Full Code Here

Examples of javax.transaction.TransactionRolledbackException

        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

Examples of javax.transaction.TransactionRolledbackException

        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

Examples of javax.transaction.TransactionRolledbackException

        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

Examples of javax.transaction.TransactionRolledbackException

                try {
                    return context.proceed();
                } catch (EJBTransactionRequiredException e) {
                    throw new TransactionRequiredException(e.getMessage());
                } catch (EJBTransactionRolledbackException e) {
                    throw new TransactionRolledbackException(e.getMessage());
                } catch (NoSuchEJBException e) {
                    throw new NoSuchObjectException(e.getMessage());
                } catch (NoSuchEntityException e) {
                    throw new NoSuchObjectException(e.getMessage());
                } catch (EJBException e) {
View Full Code Here

Examples of javax.transaction.TransactionRolledbackException

        } 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

Examples of javax.transaction.TransactionRolledbackException

 
  public void testCorrectHandlerUsedForSubclass() throws Throwable {
    MyThrowsHandler th = new MyThrowsHandler();
    ThrowsAdviceInterceptor ti = new ThrowsAdviceInterceptor(th);
    // Extends RemoteException
    TransactionRolledbackException ex = new TransactionRolledbackException();
    MockControl mc = MockControl.createControl(MethodInvocation.class);
    MethodInvocation mi = (MethodInvocation) mc.getMock();
    mi.proceed();
    mc.setThrowable(ex);
    mc.replay();
View Full Code Here

Examples of javax.transaction.TransactionRolledbackException

        throw t;
      }
    };
    ThrowsAdviceInterceptor ti = new ThrowsAdviceInterceptor(th);
    // Extends RemoteException
    TransactionRolledbackException ex = new TransactionRolledbackException();
    MockControl mc = MockControl.createControl(MethodInvocation.class);
    MethodInvocation mi = (MethodInvocation) mc.getMock();
    mi.proceed();
    mc.setThrowable(ex);
    mc.replay();
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.