Package org.jboss.cache.transaction

Examples of org.jboss.cache.transaction.TransactionContext


         // Asssociate the local TX with the global TX. Create new
         // transactionContext for TX in txTable, the modifications
         // below will need this transactionContext to add their modifications
         // under the GlobalTx key
         TransactionContext transactionContext = txTable.get(gtx);
         if (transactionContext == null) {
            // create a new transaction transactionContext
            if (trace) log.trace("creating new tx transactionContext");
            transactionContext = contextFactory.createTransactionContext(ltx);
            txTable.put(gtx, transactionContext);
View Full Code Here


         }
      }
   }

   protected void cleanupStaleLocks(InvocationContext ctx) throws Throwable {
      TransactionContext transactionContext = ctx.getTransactionContext();
      if (transactionContext != null) lockManager.unlock(ctx);
   }
View Full Code Here

      GlobalTransaction gtx;

      if (transactions.add(tx)) {
         gtx = txTable.getCurrentTransaction(tx, true);
         TransactionContext transactionContext;
         if (ctx.getGlobalTransaction() == null) {
            ctx.setGlobalTransaction(gtx);
            transactionContext = txTable.get(gtx);
            ctx.setTransactionContext(transactionContext);
         } else {
View Full Code Here

TOP

Related Classes of org.jboss.cache.transaction.TransactionContext

Copyright © 2018 www.massapicom. 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.