[jboss-jira] [JBoss JIRA] (JBJCA-1401) Avoid flushing pooled connections when matchManagedConnections returns no match
Stephen Fikes (Jira)
issues at jboss.org
Wed Dec 18 12:27:51 EST 2019
Stephen Fikes created JBJCA-1401:
------------------------------------
Summary: Avoid flushing pooled connections when matchManagedConnections returns no match
Key: JBJCA-1401
URL: https://issues.redhat.com/browse/JBJCA-1401
Project: IronJacamar
Issue Type: Feature Request
Components: Core
Affects Versions: 1.4.10
Reporter: Stephen Fikes
When no match is returned by the resource adapter implementation of [ManagedConnectionFactory.matchManagedConnections|https://docs.oracle.com/javaee/7/api/javax/resource/spi/ManagedConnectionFactory.html#matchManagedConnections-java.util.Set-javax.security.auth.Subject-javax.resource.spi.ConnectionRequestInfo-], the IronJacamar pool implementation [terminates non-matching connections|https://github.com/ironjacamar/ironjacamar/blob/ironjacamar-1.4.18.Final/core/src/main/java/org/jboss/jca/core/connectionmanager/pool/mcp/SemaphoreConcurrentLinkedDequeManagedConnectionPool.java#L425-L438].
There may be cases where resource adapters return {{null}} for cases where no connection matches but where the connections in the match set are not invalid though a different connection needs to be created based on the calling context ({{ConnectionRequestInfo}}).
A mechanism to avoid the termination of non-matching connections is needed to support such cases.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list