13.4.3TransactionAwareDataSourceProxy

At the very lowest level exists theTransactionAwareDataSourceProxyclass. This is a proxy for a targetDataSource, which wraps the targetDataSourceto add awareness of Spring-managed transactions. In this respect, it is similar to a transactional JNDIDataSourceas provided by a Java EE server.

It should almost never be necessary or desirable to use this class, except when existing code must be called and passed a standard JDBCDataSourceinterface implementation. In that case, it is possible that this code is usable, but participating in Spring managed transactions. It is preferable to write your new code by using the higher level abstractions mentioned above.

results matching ""

    No results matching ""