Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Transaction/Support
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv22984
Modified Files:
AbstractPlatformTransactionManager.cs
Log Message:
SPRNET-770 Nested RequiresNew propagaion options not working in AdoPlatformTransaction manager
SPRNET-769 Resume and throw exception if exception is thrown at start of transaction.
Index: AbstractPlatformTransactionManager.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Transaction/Support/AbstractPlatformTransactionManager.cs,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** AbstractPlatformTransactionManager.cs 7 Sep 2007 04:46:53 -0000 1.24
--- AbstractPlatformTransactionManager.cs 12 Nov 2007 19:58:06 -0000 1.25
***************
*** 290,296 ****
/// <see cref="Spring.Transaction.Support.AbstractPlatformTransactionManager.DoResume"/>.)
/// </returns>
- /// <remarks>
- /// Transaction synchronization will already have been suspended.
- /// </remarks>
/// <exception cref="Spring.Transaction.IllegalTransactionStateException">
/// If suspending is not supported by the transaction manager implementation.
--- 290,293 ----
***************
*** 322,328 ****
/// <see cref="Spring.Transaction.Support.AbstractPlatformTransactionManager.DoSuspend"/>.
/// </param>
- /// <remarks>
- /// Transaction synchronization will be resumed afterwards.
- /// </remarks>
/// <exception cref="Spring.Transaction.IllegalTransactionStateException">
/// If suspending is not supported by the transaction manager implementation.
--- 319,322 ----
***************
*** 504,508 ****
log.Debug("Creating new transaction with name [" + definition.Name + "]:" + definition);
}
! DoBegin(transaction, definition);
newSynchronization = (_transactionSyncState != TransactionSynchronizationState.Never);
return NewTransactionStatus(definition, transaction, true, newSynchronization, debugEnabled,
--- 498,509 ----
log.Debug("Creating new transaction with name [" + definition.Name + "]:" + definition);
}
! try
! {
! DoBegin(transaction, definition);
! } catch (TransactionException)
! {
! Resume(null, suspendedResources);
! throw;
! }
newSynchronization = (_transactionSyncState != TransactionSynchronizationState.Never);
return NewTransactionStatus(definition, transaction, true, newSynchronization, debugEnabled,
***************
*** 566,569 ****
--- 567,571 ----
throw;
}
+ throw;
}
bool newSynchronization = (_transactionSyncState != TransactionSynchronizationState.Never);
|