Examples of rollbackTransaction()


Examples of com.hazelcast.queue.QueueContainer.rollbackTransaction()

    }

    @Override
    public void run() throws Exception {
        QueueContainer container = getOrCreateContainer();
        container.rollbackTransaction(transactionId);
    }

    @Override
    protected void writeInternal(ObjectDataOutput out) throws IOException {
        super.writeInternal(out);
View Full Code Here

Examples of com.hazelcast.queue.impl.QueueContainer.rollbackTransaction()

    }

    @Override
    public void run() throws Exception {
        QueueContainer container = getOrCreateContainer();
        container.rollbackTransaction(transactionId);
    }

    @Override
    protected void writeInternal(ObjectDataOutput out) throws IOException {
        super.writeInternal(out);
View Full Code Here

Examples of com.hazelcast.transaction.TransactionContext.rollbackTransaction()

        try {
            final T value = task.execute(context);
            context.commitTransaction();
            return value;
        } catch (Throwable e) {
            context.rollbackTransaction();
            if (e instanceof TransactionException) {
                throw (TransactionException) e;
            }
            if (e.getCause() instanceof TransactionException) {
                throw (TransactionException) e.getCause();
View Full Code Here

Examples of com.hazelcast.transaction.TransactionContext.rollbackTransaction()

                        });

                        if (exchange.getException() != null) {
                            // Rollback
                            if (transactionCtx != null) {
                                transactionCtx.rollbackTransaction();
                            }
                            getExceptionHandler().handleException("Error processing exchange", exchange, exchange.getException());
                        }

                    } catch (Exception e) {
View Full Code Here

Examples of com.hazelcast.transaction.TransactionContext.rollbackTransaction()

                    } catch (Exception e) {
                        LOG.error("Hzlq Exception caught: " + e, e);
                        // Rollback
                        if (transactionCtx != null) {
                            log.trace("Rollback transaction: {}", transactionCtx.getTxnId());
                            transactionCtx.rollbackTransaction();
                        }
                    }
                }
                // It's OK, I commit
                if (exchange.getException() == null && transactionCtx != null) {
View Full Code Here

Examples of com.hazelcast.transaction.TransactionContext.rollbackTransaction()

                continue;
            } catch (Throwable e) {
                // Rollback
                if (transactionCtx != null) {
                    log.trace("Rollback transaction: {}", transactionCtx.getTxnId());
                    transactionCtx.rollbackTransaction();
                }
                getExceptionHandler().handleException("Error processing exchange", exchange, e);
            }
        }
    }
View Full Code Here

Examples of com.hazelcast.transaction.TransactionContext.rollbackTransaction()

                    tCtx.commitTransaction();
                    LOG.trace("Removed an exchange with ID {} for key {} in a thread-safe manner.", exchange.getExchangeId(), key);
                    LOG.trace("Put an exchange with ID {} for key {} into a recoverable storage in a thread-safe manner.",
                            exchange.getExchangeId(), key);
                } catch (Throwable throwable) {
                    tCtx.rollbackTransaction();

                    final String msg = String.format("Transaction with ID %s was rolled back for remove operation with a key %s and an Exchange ID %s.",
                            tCtx.getTxnId(), key, exchange.getExchangeId());
                    LOG.warn(msg, throwable);
                    throw new RuntimeException(msg, throwable);
View Full Code Here

Examples of com.scooterframework.transaction.TransactionManager.rollbackTransaction()

      System.out.println("You should not see this line: " + i/j);
     
        tm.commitTransaction();
      }
      catch (Exception ex) {
        tm.rollbackTransaction();
     
      Object countAfterRollback = SqlServiceClient.retrieveObjectBySQL(countSql);
      assertEquals("Total rows countAfterRollback Lingling", "13", countAfterRollback.toString());
      }
      finally {
View Full Code Here

Examples of com.webobjects.jdbcadaptor.JDBCContext.rollbackTransaction()

          Statement stmt = conn.createStatement();
          stmt.executeUpdate(sql);
          conn.commit();
        } catch (SQLException sqlexception) {
          sqlexception.printStackTrace(System.out);
          jdbccontext.rollbackTransaction();
          throw sqlexception;
        }
      } finally {
        if (!channelOpen) {
          adaptorChannel.closeChannel();
View Full Code Here

Examples of er.neo4jadaptor.Neo4JContext.rollbackTransaction()

          cursor.close();
        }
      }
      context.commitTransaction();
    } finally {
      context.rollbackTransaction();
    }
  }
 
  private static Neo4JContext context() {
    EOEditingContext ec = ERXEC.newEditingContext();
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.