[
https://issues.apache.org/jira/browse/OPENJPA-2134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13892707#comment-13892707
]
ASF subversion and git services commented on OPENJPA-2134:
----------------------------------------------------------
Commit 1564976 from [~curtisr7] in branch 'openjpa/trunk'
[ https://svn.apache.org/r1564976 ]
OPENJPA-2134: Deprecate EntityManagerImpl.prepareForPooling().
> Do not close Connections when ConnectionRetainMode is set to "always"
> ---------------------------------------------------------------------
>
> Key: OPENJPA-2134
> URL: https://issues.apache.org/jira/browse/OPENJPA-2134
> Project: OpenJPA
> Issue Type: Improvement
> Components: jdbc, performance
> Affects Versions: 2.2.1, 2.3.0
> Reporter: Kevin Sutter
> Assignee: Kevin Sutter
> Fix For: 2.2.1, 2.3.0
>
>
> 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...
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)