Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-561

Connection obtained in Synchronization.afterCompletion gets associated w/tx context

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-M3
    • 1.0-M4
    • connector
    • None

    Description

      If you have code like this in a Synchronization.afterCompletion:

      Connection c = ds.getConnection();
      //do something
      c.close();

      it gets added to the connection tracking of the transaction context that just ended. c.close() returns it to the pool, properly, but the end-of-tx cleanup returns it to the pool a second time.

      The connection should not be tracked by the transaction context, the transaction is over.

      Attachments

        Activity

          People

            djencks David Jencks
            djencks David Jencks
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: