Note that isolation level and timeout settings will not get applied unless an actual new transaction gets started. As only {@link #PROPAGATION_REQUIRED}, {@link #PROPAGATION_REQUIRES_NEW} and {@link #PROPAGATION_NESTED} can causethat, it usually doesn't make sense to specify those settings in other cases. Furthermore, be aware that not all transaction managers will support those advanced features and thus might throw corresponding exceptions when given non-default values.
The {@link #isReadOnly() read-only flag} applies to any transaction context,whether backed by an actual resource transaction or operating non-transactionally at the resource level. In the latter case, the flag will only apply to managed resources within the application, such as a Hibernate Session
.
@author Juergen Hoeller
@since 08.05.2003
@see PlatformTransactionManager#getTransaction(TransactionDefinition)
@see org.springframework.transaction.support.DefaultTransactionDefinition
@see org.springframework.transaction.interceptor.TransactionAttribute
|
|