Package org.springframework.transaction

Examples of org.springframework.transaction.CannotCreateTransactionException


      if (mts.isNewSynchonization()) {
        synchronizationManager.clearSynchronization();
      }

      throw new CannotCreateTransactionException(ex.getMessage(), ex);
    }

    return mts;
  }
View Full Code Here


            }
        }

        catch (Exception ex) {
            SessionFactoryUtils.releaseSession(session, getSessionFactory());
            throw new CannotCreateTransactionException("Could not open JCR session for transaction", ex);
        }
    }
View Full Code Here

      throw new NestedTransactionNotSupportedException(
          "Jini implementation does not support nested transactions",
          ex);
    }
    catch (SystemException ex) {
      throw new CannotCreateTransactionException("Jini failure on begin",
          ex);
    }
  }
View Full Code Here

        TransactionSynchronizationManager.bindResource(
            getTransactionalContext(), txObject.getJiniHolder());
      }
    }
    catch (LeaseDeniedException e) {
      throw new CannotCreateTransactionException("lease denied", e);
    }
    catch (RemoteException e) {
      throw new CannotCreateTransactionException("remote exception", e);
    }

  }
View Full Code Here

      TransactionSynchronizationManager.bindResource(getPbKey(), txObject.getPersistenceBrokerHolder());
    }

    catch (Exception ex) {
      releasePersistenceBroker(pb);
      throw new CannotCreateTransactionException("Could not open OJB PersistenceBroker for transaction", ex);
    }
  }
View Full Code Here

      TransactionSynchronizationManager.bindResource(getConnectionFactory(), txObject.getConnectionHolder());
    }

    catch (NotSupportedException ex) {
      ConnectionFactoryUtils.releaseConnection(con, getConnectionFactory());
      throw new CannotCreateTransactionException("CCI Connection does not support local transactions", ex);
    }
    catch (LocalTransactionException ex) {
      ConnectionFactoryUtils.releaseConnection(con, getConnectionFactory());
      throw new CannotCreateTransactionException("Could not begin local CCI transaction", ex);
    }
    catch (ResourceException ex) {
      ConnectionFactoryUtils.releaseConnection(con, getConnectionFactory());
      throw new TransactionSystemException("Unexpected failure on begin of CCI local transaction", ex);
    }
View Full Code Here

      closeEntityManagerAfterFailedBegin(txObject);
      throw ex;
    }
    catch (Exception ex) {
      closeEntityManagerAfterFailedBegin(txObject);
      throw new CannotCreateTransactionException("Could not open JPA EntityManager for transaction", ex);
    }
  }
View Full Code Here

      TransactionSynchronizationManager.bindResource(getObjectContainer(), containerHolder);
    }

    catch (Exception ex) {

      throw new CannotCreateTransactionException("Could not start db4o object container transaction",
          ex);
    }
  }
View Full Code Here

    }
    catch (Exception ex) {
      if (txObject.isNewEntityManagerHolder()) {
        em.close();
      }
      throw new CannotCreateTransactionException("Could not open JPA EntityManager for transaction", ex);
    }
  }
View Full Code Here

        }
        catch (Throwable ex2) {
          // ignore
        }
      }
      throw new CannotCreateTransactionException("Could not create JMS transaction", ex);
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.transaction.CannotCreateTransactionException

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.