Announcement Announcement Module
Collapse
No announcement yet.
How the SingleConnectionDataSource can be used with autocommit false? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How the SingleConnectionDataSource can be used with autocommit false?

    I need some daos always deal with the same connection which should NOT be closed by JDBCtemplate.
    For that reason I have used SingleConnectionDataSource as a data-source to ensure that getConnection always give me the same connection.
    The problem is that using it the autocommit false feature is ignored.

    How I can use SingleConnectionDataSource and get a pure control autocommit feature.
    It seems that SingleConnectionDataSource always force the commit

Working...
X