@ -1,5 +1,5 @@
/ *
/ *
* Copyright 2002 - 2012 the original author or authors .
* Copyright 2002 - 2013 the original author or authors .
*
*
* Licensed under the Apache License , Version 2 . 0 ( the "License" ) ;
* Licensed under the Apache License , Version 2 . 0 ( the "License" ) ;
* you may not use this file except in compliance with the License .
* you may not use this file except in compliance with the License .
@ -29,8 +29,8 @@ import org.springframework.transaction.TransactionException;
import org.springframework.transaction.TransactionSystemException ;
import org.springframework.transaction.TransactionSystemException ;
import org.springframework.transaction.support.AbstractPlatformTransactionManager ;
import org.springframework.transaction.support.AbstractPlatformTransactionManager ;
import org.springframework.transaction.support.DefaultTransactionStatus ;
import org.springframework.transaction.support.DefaultTransactionStatus ;
import org.springframework.transaction.support.TransactionSynchronizationManager ;
import org.springframework.transaction.support.ResourceTransactionManager ;
import org.springframework.transaction.support.ResourceTransactionManager ;
import org.springframework.transaction.support.TransactionSynchronizationManager ;
/ * *
/ * *
* { @link org . springframework . transaction . PlatformTransactionManager } implementation
* { @link org . springframework . transaction . PlatformTransactionManager } implementation
@ -139,7 +139,6 @@ public class CciLocalTransactionManager extends AbstractPlatformTransactionManag
@Override
@Override
protected void doBegin ( Object transaction , TransactionDefinition definition ) {
protected void doBegin ( Object transaction , TransactionDefinition definition ) {
CciLocalTransactionObject txObject = ( CciLocalTransactionObject ) transaction ;
CciLocalTransactionObject txObject = ( CciLocalTransactionObject ) transaction ;
Connection con = null ;
Connection con = null ;
try {
try {
@ -167,7 +166,7 @@ public class CciLocalTransactionManager extends AbstractPlatformTransactionManag
ConnectionFactoryUtils . releaseConnection ( con , getConnectionFactory ( ) ) ;
ConnectionFactoryUtils . releaseConnection ( con , getConnectionFactory ( ) ) ;
throw new CannotCreateTransactionException ( "Could not begin local CCI transaction" , ex ) ;
throw new CannotCreateTransactionException ( "Could not begin local CCI transaction" , ex ) ;
}
}
catch ( ResourceException ex ) {
catch ( Throwable ex ) {
ConnectionFactoryUtils . releaseConnection ( con , getConnectionFactory ( ) ) ;
ConnectionFactoryUtils . releaseConnection ( con , getConnectionFactory ( ) ) ;
throw new TransactionSystemException ( "Unexpected failure on begin of CCI local transaction" , ex ) ;
throw new TransactionSystemException ( "Unexpected failure on begin of CCI local transaction" , ex ) ;
}
}