Commons Dbcp
  1. Commons Dbcp
  2. DBCP-217

Closing of underlaying connection instead of the PoolGuardConnectionWrapper

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.2
    • Fix Version/s: 1.3
    • Labels:
      None

      Description

      Is state:
      If I obtain the Connection of a Statement (stmt.getConnection()), created with dbcp,
      the returned Object is the underlaying pooled connection.
      Closing this connection multiple times may close the connection of another process.

      It should be:
      The Wrapper over the connection PoolGuardConnectionWrapper should be returned instead.

        Activity

        Hide
        Sebastian Mancke added a comment -

        This patch sets the wrapper (instance of PoolGuardConnectionWrapper)
        as the connection of every created statement.

        Show
        Sebastian Mancke added a comment - This patch sets the wrapper (instance of PoolGuardConnectionWrapper) as the connection of every created statement.
        Hide
        Dain Sundstrom added a comment -

        Fixed as part of DBCP-11.

        Show
        Dain Sundstrom added a comment - Fixed as part of DBCP-11 .

          People

          • Assignee:
            Unassigned
            Reporter:
            Sebastian Mancke
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development