]
Stefano Maestri updated JBJCA-1330:
-----------------------------------
Fix Version/s: WildFly/IronJacamar 1.4.1.Final
XA Stats not updated when the provided XAResource already implements
XAResourceWrapper
---------------------------------------------------------------------------------------
Key: JBJCA-1330
URL:
https://issues.jboss.org/browse/JBJCA-1330
Project: IronJacamar
Issue Type: Bug
Affects Versions: WildFly/IronJacamar 1.3.4.Final
Reporter: Jeff Mesnil
Assignee: Stefano Maestri
Fix For: WildFly/IronJacamar 1.4.1.Final
Use case: provide XA statistics to WildFly's messaging-activemq
pooled-connection-factory leveraging
org.jboss.as.connector.dynamicresource.StatisticsResourceDefinition.
I have a dev branch[1] for this and pool statistics (from
org.jboss.jca.core.api.connectionmanager.pool.PoolStatistics) are updated as expected.
However xa stats (from org.jboss.jca.core.spi.transaction.XAResourceStatistics) are not
updated.
The pooled-connection-factory uses a XAPool and its XAResource implementation extends
org.jboss.jca.core.spi.transaction.xa.XAResourceWrapper[2].
Doing some debugging, the code at [3] does not look correct. The provided xar extends
XAResourceWrapper, so txIntegration.createXAResourceWrapper() is not called and the xar is
not wrapped by a XAResourceWrapperStatImpl that is the code responsible to update XA
stats.
[1]
https://github.com/jmesnil/wildfly/tree/WFLY-3636_pooled-connection-facto...
[2]
https://github.com/rh-messaging/artemis-wildfly-integration/blob/master/s...
[3]
https://github.com/ironjacamar/ironjacamar/blob/1.3/core/src/main/java/or...