Examples of InvalidIsolationLevelException


Examples of org.springframework.transaction.InvalidIsolationLevelException

      }
      else {
        // Not allowed to change the transaction settings of the JDBC Connection.
        if (definition.getIsolationLevel() != TransactionDefinition.ISOLATION_DEFAULT) {
          // We should set a specific isolation level but are not allowed to...
          throw new InvalidIsolationLevelException(
              "HibernateTransactionManager is not allowed to support custom isolation levels: " +
              "make sure that its 'prepareConnection' flag is on (the default) and that the " +
              "Hibernate connection release mode is set to 'on_close' (LocalSessionFactoryBean's default)");
        }
        if (logger.isDebugEnabled()) {
View Full Code Here

Examples of org.springframework.transaction.InvalidIsolationLevelException

      }
      else {
        // Not allowed to change the transaction settings of the JDBC Connection.
        if (definition.getIsolationLevel() != TransactionDefinition.ISOLATION_DEFAULT) {
          // We should set a specific isolation level but are not allowed to...
          throw new InvalidIsolationLevelException(
              "HibernateTransactionManager is not allowed to support custom isolation levels: " +
              "make sure that its 'prepareConnection' flag is on (the default) and that the " +
              "Hibernate connection release mode is set to 'on_close' (SpringTransactionFactory's default). " +
              "Make sure that your LocalSessionFactoryBean actually uses SpringTransactionFactory: Your " +
              "Hibernate properties should *not* include a 'hibernate.transaction.factory_class' property!");
View Full Code Here

Examples of org.springframework.transaction.InvalidIsolationLevelException

   */
  public Object beginTransaction(Transaction transaction, TransactionDefinition definition)
      throws JDOException, SQLException, TransactionException {

    if (definition.getIsolationLevel() != TransactionDefinition.ISOLATION_DEFAULT) {
      throw new InvalidIsolationLevelException(
          "Standard JDO does not support custom isolation levels: " +
          "use a special JdoDialect implementation for your JDO provider");
    }
    transaction.begin();
    return null;
View Full Code Here

Examples of org.springframework.transaction.InvalidIsolationLevelException

  }

  @Override
  protected void doBegin(Object transaction, TransactionDefinition definition) {
    if (definition.getIsolationLevel() != TransactionDefinition.ISOLATION_DEFAULT) {
      throw new InvalidIsolationLevelException("AMQP does not support an isolation level concept");
    }
    RabbitTransactionObject txObject = (RabbitTransactionObject) transaction;
    RabbitResourceHolder resourceHolder = null;
    try {
      resourceHolder = ConnectionFactoryUtils.getTransactionalResourceHolder(getConnectionFactory(), true);
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.