Examples of rollback()


Examples of net.timewalker.ffmq3.local.session.LocalSession.rollback()

   
    private RollbackResponse processRollback( RollbackQuery query ) throws JMSException
    {
      LocalSession localSession = lookupSession(query);
      List deliveredMessageIDs = query.getDeliveredMessageIDs();
        localSession.rollback(deliveredMessageIDs != null && !deliveredMessageIDs.isEmpty(), deliveredMessageIDs);
       
        return new RollbackResponse();
    }
   
    private GetResponse processGet( GetQuery query ) throws JMSException
View Full Code Here

Examples of nexj.core.runtime.UnitOfWork.rollback()

            queue.invoke("send", new Object[]{col});
            uow.commit(true);
         }
         catch (Throwable t)
         {
            uow.rollback();
            ObjUtil.rethrow(t);
         }
         finally
         {
            m_invocationContext.setUnitOfWork(oldUOW);
View Full Code Here

Examples of nexj.core.runtime.platform.generic.tx.GenericTransactionManager.rollback()

     
      //Wind up
      fConn1.close();
      fConn2.close();
     
      txM.rollback();

     
      //There should be no output
      assertEquals(0, m_outgoingDirectory.listFiles().length);
     
View Full Code Here

Examples of org.activemq.service.Transaction.rollback()

     *
     * @see org.activemq.broker.Broker#rollbackTransaction(org.activemq.broker.BrokerClient, org.activemq.message.ActiveMQXid)
     */
    public void rollbackTransaction(BrokerClient client, ActiveMQXid xid) throws XAException {
        Transaction transaction = transactionManager.getXATransaction(xid);
        transaction.rollback();
    }

    /**
     * Commit an XA Transaction.
     *
 
View Full Code Here

Examples of org.adbcj.Connection.rollback()

      assertEquals(rs.size(), 1);
      Value value = rs.get(0).get(0);
      assertEquals(value.getInt(), 1);

      // Rollback transaction
      connection.rollback().get();

      // select query should now be empty
      rs = connection.executeQuery("SELECT id FROM updates").get();
      assertNotNull(rs);
      assertEquals(rs.size(), 0);
View Full Code Here

Examples of org.apache.activemq.ActiveMQSession.rollback()

       Connection connection2 = connectionFactory.createConnection();
       connection2.start();
       ActiveMQSession session2 = (ActiveMQSession) connection2.createSession(false, Session.AUTO_ACKNOWLEDGE);

       if (session2.isTransacted()) {
           session2.rollback();
       }

       session2.close();

       resource.commit(tid, true);
View Full Code Here

Examples of org.apache.activemq.broker.region.policy.DeadLetterStrategy.rollback()

        messagesLock.writeLock().lock();
        try {
            messages.rollback(m.getMessageId());
            if (isDLQ()) {
                DeadLetterStrategy stratagy = getDeadLetterStrategy();
                stratagy.rollback(m.getMessage());
            }
        } finally {
            messagesLock.writeLock().unlock();
        }
        return true;
View Full Code Here

Examples of org.apache.activemq.transaction.Transaction.rollback()

        transaction.commit(onePhase);
    }

    public void rollbackTransaction(ConnectionContext context, TransactionId xid) throws Exception {
        Transaction transaction = getTransaction(context, xid, true);
        transaction.rollback();
    }

    public void forgetTransaction(ConnectionContext context, TransactionId xid) throws Exception {
        Transaction transaction = getTransaction(context, xid, true);
        transaction.rollback();
View Full Code Here

Examples of org.apache.cayenne.access.Transaction.rollback()

        } finally {
            Transaction.bindThreadTransaction(null);

            if (tx.getStatus() == Transaction.STATUS_MARKED_ROLLEDBACK) {
                try {
                    tx.rollback();
                } catch (Exception e) {
                }
            }
        }
    }
View Full Code Here

Examples of org.apache.cocoon.acting.ModularDatabaseAccess.OutputHelper.rollback()

                try {
                    if (getLogger().isDebugEnabled())
                        getLogger().debug( "Rolling back transaction. Caused by " + e.getMessage() );
                    conn.rollback();
                    OutputHelper oh = (OutputHelper) outputMapping.select( (String) defaultModeNames.get( MODE_OUTPUT ) );
                    oh.rollback( null, request, e );
                    outputMapping.release( oh );
                } catch (SQLException se) {
                    if (getLogger().isDebugEnabled())
                        getLogger().debug("There was an error rolling back the transaction", se);
                }
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.