Package javax.transaction

Examples of javax.transaction.TransactionManager.resume()


         else
         {
            // If there is already a transaction we ignore the XAResource (by spec 12.5.9)
            try
            {
               tm.resume(suspended);
            }
            finally
            {
               suspended = null;
               if (trace)
View Full Code Here


            // Suspend any bad transaction - there is bug somewhere, but we will try to tidy things up
            if (currentTx != null && currentTx.equals(transaction) == false)
            {
               log.warn("Current transaction " + currentTx + " is not the expected transaction.");
               tm.suspend();
               tm.resume(transaction);
            }
            else
            {
               // We have the correct transaction
               currentTx = null;
View Full Code Here

         if (suspended != null)
         {
            try
            {
               tm = TxUtil.getTransactionManager(); //getContainer(mi).getTransactionManager();
               tm.resume(suspended);
            }
            finally
            {
               suspended = null;
            }
View Full Code Here

         // Resume any suspended transaction
         if (currentTx != null)
         {
            try
            {
               tm.resume(currentTx);
            }
            catch (Throwable t)
            {
               log.warn("MessageEndpoint " + getProxyString(proxy) + " failed to resume old transaction " + currentTx);
              
View Full Code Here

        }
      }
      finally {
        if ( surroundingTransaction != null ) {
          try {
            transactionManager.resume( surroundingTransaction );
            if ( log.isDebugEnabled() ) {
              log.debug( "surrounding JTA transaction resumed [" + surroundingTransaction + "]" );
            }
          }
          catch( Throwable t ) {
View Full Code Here

      }
      finally
      {
         if (toResume != null)
         {
            tm.resume(toResume);
         }
      }
     
      if (ok)
      {        
View Full Code Here

      }
      finally
      {
         if (toResume != null)
         {
            tm.resume(toResume);
         }
      }

      if (ok)
      {
View Full Code Here

        hadProblems = true;
        throw e;
      }
      finally {
        try {
          transactionManager.resume( surroundingTransaction );
          LOG.debugf( "Surrounding JTA transaction resumed [%s]", surroundingTransaction );
        }
        catch( Throwable t ) {
          // if the actually work had an error use that, otherwise error based on t
          if ( !hadProblems ) {
View Full Code Here

      executeStatement(mgr, ds, "DROP TABLE JBM_DUAL");

      if (txOld != null)
      {
         mgr.resume(txOld);
      }

      log.debug("done with dropping tables");
   }
View Full Code Here

      executeStatement(mgr, ds, "DELETE FROM JBM_ID_CACHE");

      if (txOld != null)
      {
         mgr.resume(txOld);
      }

      log.debug("done with the deleting data");
   }
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.