Package org.springframework.transaction

Examples of org.springframework.transaction.TransactionSystemException


    }
    try {
      txObject.getSessionHolder().getTransaction().rollback();
    }
    catch (org.hibernate.TransactionException ex) {
      throw new TransactionSystemException("Could not roll back Hibernate transaction", ex);
    }
    catch (HibernateException ex) {
      // Shouldn't really happen, as a rollback doesn't cause a flush.
      throw convertHibernateAccessException(ex);
    }
View Full Code Here


        logger.debug("Retrieving WebSphere UOWManager from JNDI location [" + uowManagerName + "]");
      }
      return (UOWManager) getJndiTemplate().lookup(uowManagerName, UOWManager.class);
    }
    catch (NamingException ex) {
      throw new TransactionSystemException(
          "WebSphere UOWManager is not available at JNDI location [" + uowManagerName + "]", ex);
    }
  }
View Full Code Here

        logger.debug("Returned from WebSphere UOW action: type=" + uowType + ", join=" + joinTx);
      }
      return action.getResult();
    }
    catch (UOWException ex) {
      throw new TransactionSystemException("UOWManager transaction processing failed", ex);
    }
    catch (UOWActionException ex) {
      throw new TransactionSystemException("UOWManager threw unexpected UOWActionException", ex);
    }
    finally {
      if (suspendedResources != null) {
        resume(null, suspendedResources);
      }
View Full Code Here

      if (tx.isActive()) {
        tx.rollback();
      }
    }
    catch (JDOException ex) {
      throw new TransactionSystemException("Could not roll back JDO transaction", ex);
    }
  }
View Full Code Here

  public void rollbackToSavepoint(Object savepoint) throws TransactionException {
    try {
      getConnectionHolderForSavepoint().getConnection().rollback((Savepoint) savepoint);
    }
    catch (Throwable ex) {
      throw new TransactionSystemException("Could not roll back to JDBC savepoint", ex);
    }
  }
View Full Code Here

        logger.debug("Retrieving WebSphere UOWManager from JNDI location [" + uowManagerName + "]");
      }
      return (UOWManager) getJndiTemplate().lookup(uowManagerName, UOWManager.class);
    }
    catch (NamingException ex) {
      throw new TransactionSystemException(
          "WebSphere UOWManager is not available at JNDI location [" + uowManagerName + "]", ex);
    }
  }
View Full Code Here

        logger.debug("Returned from WebSphere UOW action: type=" + uowType + ", join=" + joinTx);
      }
      return action.getResult();
    }
    catch (UOWException ex) {
      throw new TransactionSystemException("UOWManager transaction processing failed", ex);
    }
    catch (UOWActionException ex) {
      throw new TransactionSystemException("UOWManager threw unexpected UOWActionException", ex);
    }
    finally {
      if (suspendedResources != null) {
        resume(null, suspendedResources);
      }
View Full Code Here

    }
    catch (TransactionRolledBackException ex) {
      throw new UnexpectedRollbackException("JMS transaction rolled back", ex);
    }
    catch (JMSException ex) {
      throw new TransactionSystemException("Could not commit JMS transaction", ex);
    }
  }
View Full Code Here

        logger.debug("Rolling back JMS transaction on Session [" + session + "]");
      }
      session.rollback();
    }
    catch (JMSException ex) {
      throw new TransactionSystemException("Could not roll back JMS transaction", ex);
    }
  }
View Full Code Here

      if (tx.isActive()) {
        tx.rollback();
      }
    }
    catch (JDOException ex) {
      throw new TransactionSystemException("Could not roll back JDO transaction", ex);
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.transaction.TransactionSystemException

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.