
Originally Posted by
Juergen Hoeller
Note that you could still leverage Spring transaction demarcation without an actual database transaction backing it: through specifying "PROPAGATION_SUPPORTS" with the default synchronization behavior.
Even in case of SUPPORTS, Spring will still activate transaction synchronization for the demarcated scope, allowing data access code to synchronize its resources accordingly. This will lead to the same JDBC Connection (and Hibernate Session etc) used throughout that scope, even without an actual database transaction.
No need for a SingleConnectionDataSource or the like in this scenario. This seems to be what you want to achieve... and you would get it without any custom coding.
Juergen