Package org.springframework.transaction

Examples of org.springframework.transaction.NoTransactionException


      if (txObject.getUserTransaction().getStatus() != Status.STATUS_NO_TRANSACTION) {
        txObject.getUserTransaction().setRollbackOnly();
      }
    }
    catch (IllegalStateException ex) {
      throw new NoTransactionException("No active JTA transaction");
    }
    catch (SystemException ex) {
      throw new TransactionSystemException("JTA failure on setRollbackOnly", ex);
    }
  }
View Full Code Here


   * because the method was invoked outside an AOP invocation context
   */
  public static TransactionStatus currentTransactionStatus() throws NoTransactionException {
    TransactionInfo info = currentTransactionInfo();
    if (info == null) {
      throw new NoTransactionException("No transaction aspect-managed TransactionStatus in scope");
    }
    return currentTransactionInfo().transactionStatus;
  }
View Full Code Here

   * because the method was invoked outside an AOP invocation context
   */
  public static TransactionStatus currentTransactionStatus() throws NoTransactionException {
    TransactionInfo info = currentTransactionInfo();
    if (info == null) {
      throw new NoTransactionException("No transaction aspect-managed TransactionStatus in scope");
    }
    return currentTransactionInfo().transactionStatus;
  }
View Full Code Here

   * because the method was invoked outside an AOP invocation context
   */
  public static TransactionStatus currentTransactionStatus() throws NoTransactionException {
    TransactionInfo info = currentTransactionInfo();
    if (info == null) {
      throw new NoTransactionException("No transaction aspect-managed TransactionStatus in scope");
    }
    return currentTransactionInfo().transactionStatus;
  }
View Full Code Here

   * because the method was invoked outside an AOP invocation context
   */
  public static TransactionStatus currentTransactionStatus() throws NoTransactionException {
    TransactionInfo info = currentTransactionInfo();
    if (info == null || info.transactionStatus == null) {
      throw new NoTransactionException("No transaction aspect-managed TransactionStatus in scope");
    }
    return info.transactionStatus;
  }
View Full Code Here

   * because the method was invoked outside an AOP invocation context
   */
  public static TransactionStatus currentTransactionStatus() throws NoTransactionException {
    TransactionInfo info = currentTransactionInfo();
    if (info == null) {
      throw new NoTransactionException("No transaction aspect-managed TransactionStatus in scope");
    }
    return currentTransactionInfo().transactionStatus;
  }
View Full Code Here

   * because the method was invoked outside an AOP invocation context
   */
  public static TransactionStatus currentTransactionStatus() throws NoTransactionException {
    TransactionInfo info = currentTransactionInfo();
    if (info == null) {
      throw new NoTransactionException("No transaction aspect-managed TransactionStatus in scope");
    }
    return currentTransactionInfo().transactionStatus;
  }
View Full Code Here

    }
    try {
      cache.getCacheTransactionManager().commit();
    }
    catch (IllegalStateException ex) {
      throw new NoTransactionException(
          "No transaction associated with the current thread; are there multiple transaction managers ?", ex);
    }
   
    catch (com.gemstone.gemfire.cache.TransactionException ex) {
      throw new GemfireTransactionCommitException("Unexpected failure on commit of Cache local transaction", ex);
View Full Code Here

    }
    try {
      cache.getCacheTransactionManager().rollback();
    }
    catch (IllegalStateException ex) {
      throw new NoTransactionException(
          "No transaction associated with the current thread; are there multiple transaction managers ?", ex);
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.transaction.NoTransactionException

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.