Skip to content

sql2o and spring transaction integration question #313

@colesico

Description

@colesico

https://github.com/aaberg/sql2o/wiki/Integration-with-Spring-Framework

Not quite clear how does the sql2o actualy gets the jdbc connection that is binded to the active transaction?

As far as I know, in order to get a jdbc connection binded to the active spring transaction, DataSourceUtils.getConnection()
shoud be used ( instead of directly from data sourcre) or data source wraped to TransactionAwareDataSourceProxy

Thx!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions