JBoss EAP 7 - NoTxConnection不会发布托管连接

时间:2018-01-08 05:21:37

标签: jboss-eap-7

我们在NoTransaction模式下使用JBoss eap 7应用服务器和自定义LDAP资源适配器实现。 当托管连接无法创建物理连接并抛出异常时,jboss不会将托管连接释放回池并导致连接泄漏。 事务连接不会发生此类问题。这种行为是故意还是JBoss JCA中的错误?

栈跟踪

javax.resource.ResourceException: IJ000453: Unable to get managed connection for java:/PCELDAPConnectionFactory
at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:656)
at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:563)
at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:747)
....
Caused by: javax.resource.ResourceException: IJ000655: No managed connections available within configured blocking timeout (30000 [ms])
at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.getConnection(SemaphoreConcurrentLinkedDequeManagedConnectionPool.java:566)
at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getSimpleConnection(AbstractPool.java:617)
at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getConnection(AbstractPool.java:589)
at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:590)

由于

0 个答案:

没有答案