Package net.jini.core.transaction

Examples of net.jini.core.transaction.Transaction.abort()


            txn.commit();
            return;
          }
        } else {
          System.out.println("--RMAdapter--: Killing aborted JCE is null");
          txn.abort();
          return;
        }
      } catch(Exception ex) {
        ex.printStackTrace();
        txn.abort();
View Full Code Here


          txn.abort();
          return;
        }
      } catch(Exception ex) {
        ex.printStackTrace();
        txn.abort();
        return;
      }
      txn.commit();
    } catch(Exception ex) {
      ex.printStackTrace();
View Full Code Here

            }

        } catch (Exception e) {
            if (tnx != null) {
                try {
                    tnx.abort();
                } catch (UnknownTransactionException e1) {
                    throw new RuntimeCamelException(e1);
                } catch (CannotAbortException e1) {
                    throw new RuntimeCamelException(e1);
                } catch (RemoteException e1) {
View Full Code Here

            }

        } catch (Exception e) {
            if (tnx != null) {
                try {
                    tnx.abort();
                } catch (UnknownTransactionException e1) {
                    throw new RuntimeCamelException(e1);
                } catch (CannotAbortException e1) {
                    throw new RuntimeCamelException(e1);
                } catch (RemoteException e1) {
View Full Code Here

            }

        } catch (Exception e) {
            if (tnx != null) {
                try {
                    tnx.abort();
                } catch (UnknownTransactionException e1) {
                    throw new RuntimeCamelException(e1);
                } catch (CannotAbortException e1) {
                    throw new RuntimeCamelException(e1);
                } catch (RemoteException e1) {
View Full Code Here

  logger.log(Level.INFO, "calling " + resolve);
  if (commit)
      txn2.commit(60000);
  else
      txn2.abort(60000);
  logger.log(Level.INFO, resolve + " returned");

  if (takeThread.waitOnTakeReturn(30000)) {
      logger.log(Level.INFO, action + "/" + resolve + " trail ok");
  } else {
View Full Code Here

        // give time for reads to get well and truly blocked, then abort
        timeLog("sleeping " + SLEEP_TIME + " seconds");
        Thread.sleep(SLEEP_TIME * SECONDS);
        timeLog("aborting");
        t1.abort();

        // now wait to see what happens to the blocked operation
        timeLog("checking shouldMatch");
        shouldMatch.checkResult(true);
        timeLog("checking shouldNotMatch");
View Full Code Here

        }

        if (null == space.take(entry, txn, 0)) {
            throw new TestException( "Could not perform take");
        }
        txn.abort(60000);

        if (null == space.read(entry, null, 0)) {
            throw new TestException(
                    "Confirming read returned null value");
        }
View Full Code Here

            }

        } catch (Exception e) {
            if (tnx != null) {
                try {
                    tnx.abort();
                } catch (UnknownTransactionException e1) {
                    throw new RuntimeCamelException(e1);
                } catch (CannotAbortException e1) {
                    throw new RuntimeCamelException(e1);
                } catch (RemoteException e1) {
View Full Code Here

                        tx = TransactionFactory.create(tranMgr, Lease.FOREVER).transaction;

                    }
                    WorkflowEntry entry = (WorkflowEntry)space.takeIfExists(template, tx, timeout);
                    if (entry == null && tx != null) {
                        tx.abort();
                    } else {
                        if(entry!=null) {
                            logger.info("Worker [{}] processing task: {}", name, entry);
                            meanTime.startTiming();
                            Entry result = entry.execute();
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.