Examples of rollback()


Examples of org.jboss.forge.addon.resource.transaction.ResourceTransaction.rollback()

      ResourceTransaction transaction = resourceFactory.getTransaction();
      if (!transaction.isStarted())
      {
         return Results.fail("Resource Transaction is not started");
      }
      transaction.rollback();
      return Results.success();
   }

}
View Full Code Here

Examples of org.jboss.internal.soa.esb.rosetta.pooling.JmsSession.rollback()

        try {
            handleRouting(jmsSession, message) ;
        } catch (final JMSException jmse) {
            try {
                if (jmsSession.getTransacted()) {
                    jmsSession.rollback() ;
                    throw new ActionProcessingException("Unexpected exception routing message", jmse) ;
                } else {
                    // Try to acquire again
                    final JmsSession newJmsSession = getJmsSession() ;
                    try {
View Full Code Here

Examples of org.jboss.messaging.core.impl.tx.Transaction.rollback()

            Transaction tx =  tr.getPreparedTx(request.getXid());

            if (trace) { log.trace(this + " rolling back " + tx); }

            tx.rollback();
         }

         if (trace) { log.trace(this + " processed transaction successfully"); }
      }
      catch (Throwable t)
View Full Code Here

Examples of org.jboss.messaging.core.tx.Transaction.rollback()

        
         tx.commit();        
      }
      catch (Throwable t)
      {
         tx.rollback();
         throw t;
      }
      finally
      {
         if (ref != null)
View Full Code Here

Examples of org.jboss.narayana.blacktie.jatmibroker.jab.JABTransaction.rollback()

    transaction.rollback_only();
    jabService.getRequest().setByteArray("X_OCTET",
        "test_tpcall_x_octet".getBytes());
    jabService.call(transaction);
    try {
      transaction.rollback();
    } catch (JABException e) {
      fail("rolling back a tx marked rollback through exception: "
          + e.getMessage());
    }
    byte[] expected = new byte[60];
View Full Code Here

Examples of org.jboss.seam.transaction.SeamApplicationException.rollback()

      }
      Class<?> exClass = e.getClass();
      if (exClass.isAnnotationPresent(SeamApplicationException.class))
      {
         SeamApplicationException sae = exClass.getAnnotation(SeamApplicationException.class);
         return sae.rollback();
      }
      else if (exClass.isAnnotationPresent(EjbApi.APPLICATION_EXCEPTION))
      {
         Object ae = exClass.getAnnotation(EjbApi.APPLICATION_EXCEPTION);
         try
View Full Code Here

Examples of org.jboss.seam.transaction.UserTransaction.rollback()

      {
         UserTransaction transaction = Transaction.instance();
         if ( transaction.isActiveOrMarkedRollback() || transaction.isRolledBack() )
         {
            log.debug("killing transaction");
            transaction.rollback();
         }
      }
      catch (Exception te)
      {
         log.error("could not roll back transaction", te);
View Full Code Here

Examples of org.jboss.soa.esb.helpers.persist.JdbcCleanConn.rollback()

        finally {
            try {
          if (RS != null)
              RS.close();
         
                oConn.rollback();
            } catch (final SQLException sqle) {
              refreshDatasource();
            }
        }
        if (_logger.isDebugEnabled()) {
View Full Code Here

Examples of org.jboss.test.jca.adapter.TestConnection.rollback()

      assertNotNull(c);
      try
      {
         c.begin();
         assertEquals(TestManagedConnection.LOCAL_TRANSACTION, c.getLocalState());
         c.rollback();
         assertEquals(TestManagedConnection.LOCAL_ROLLEDBACK, c.getLocalState());
      }
      finally
      {
         c.close();
View Full Code Here

Examples of org.jooq.TransactionProvider.rollback()

            result = transactional.run(ctx.configuration());
            provider.commit(ctx);
        }
        catch (Exception cause) {
            try {
                provider.rollback(ctx.cause(cause));
            }

            // [#3718] Use reflection to support also JDBC 4.0
            catch (Exception suppress) {
                try {
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.