I have a few questions related to spring connections and transactions.
Does spring use the same connection instance when multiple transactions that perform DML and DDL operations are executed in a transaction (propagation level REQUIRED)? I read that he supports the same connection, but does not know why and how he does it technically? Explaining how any hints will be provided in the spring source code would be helpful.
Using spring declarative transactions, if I use Serializable as the isolation level, spring will make sure that one connection is always used when performing database operations in this method or in any other method called from the original transactional method
Are there any points that I should consider when working with spring Transactions that deal with this issue?
Any thoughts / help on this topic would be appreciated. Thanks.
Update 1 . I'm sorry for the mistake. I wrote a serializable distribution level instead of isolation level. Fixed.
Andy dufresne
source share