Uploaded image for project: 'OJB'
  1. OJB
  2. OJB-97

ConnectionFactoryDBCPImpl: Rollback call after commit call when set useAutoCommit="2"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.4
    • 1.0.5
    • None
    • None

    Description

      In method org.apache.commons.dbcp.PoolableConnectionFactory#passivateObject(Object obj) two undesireable calls are done:
      1. setAutocommit(true) is always called
      2. This check: !conn.getAutoCommit() && !conn.isReadOnly() always rollback the connection
      The only idea I have is to extend PoolableConnection and override the critical methods

      Attachments

        Activity

          People

            arminw Armin Waibel
            arminw Armin Waibel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: