OpenJPA
  1. OpenJPA
  2. OPENJPA-2134

Do not close Connections when ConnectionRetainMode is set to "always"

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.1, 2.3.0
    • Fix Version/s: 2.2.1, 2.3.0
    • Component/s: jdbc, performance
    • Labels:
      None

      Description

      Currently, during the prepareForPooling processing, we are closing the Connection before allowing the EM to be put placed into a Container's EM Pool. That seems to be overkill, especially if the ConnectionRetainMode is set to "always". We'll use this Issue to at least improve this processing when ConnectionRetainMode is set to "always". But, this whole prepareForPooling might be unnecessary overhead. Only correcting one issue at a time...

      There are no Sub-Tasks for this issue.

        Activity

        Hide
        ASF subversion and git services added a comment -

        Commit 1564976 from Rick Curtis in branch 'openjpa/trunk'
        [ https://svn.apache.org/r1564976 ]

        OPENJPA-2134: Deprecate EntityManagerImpl.prepareForPooling().

        Show
        ASF subversion and git services added a comment - Commit 1564976 from Rick Curtis in branch 'openjpa/trunk' [ https://svn.apache.org/r1564976 ] OPENJPA-2134 : Deprecate EntityManagerImpl.prepareForPooling().
        Rick Curtis committed 1564976 (1 file)
        Albert Lee made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Albert Lee made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Kevin Sutter made changes -
        Fix Version/s 2.3.0 [ 12319463 ]
        Fix Version/s 2.2.1 [ 12319943 ]
        Kevin Sutter committed 1291917 (1 file)
        Reviews: none

        OPENJPA-2134. Do not close Connections during prepareForPooling if ConnectionRetainMode is set to "always".

        Kevin Sutter committed 1291900 (1 file)
        Reviews: none

        OPENJPA-2134. Do not close Connections during prepareForPooling if ConnectionRetainMode is set to "always".

        Kevin Sutter made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        Kevin Sutter created issue -

          People

          • Assignee:
            Kevin Sutter
            Reporter:
            Kevin Sutter
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development