spring-framework / org.springframework.jdbc.datasource / TransactionAwareDataSourceProxy / setReobtainTransactionalConnections

setReobtainTransactionalConnections

open fun setReobtainTransactionalConnections(reobtainTransactionalConnections: Boolean): Unit

Specify whether to reobtain the target Connection for each operation performed within a transaction.

The default is "false". Specify "true" to reobtain transactional Connections for every call on the Connection proxy; this is advisable on JBoss if you hold on to a Connection handle across transaction boundaries.

The effect of this setting is similar to the "hibernate.connection.release_mode" value "after_statement".