[jboss-jira] [JBoss JIRA] (JBJCA-1330) XA Stats not updated when the provided XAResource already implements XAResourceWrapper
Jeff Mesnil (JIRA)
issues at jboss.org
Mon Sep 12 09:30:00 EDT 2016
Jeff Mesnil created JBJCA-1330:
----------------------------------
Summary: 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: Feature Request
Affects Versions: WildFly/IronJacamar 1.3.4.Final
Reporter: Jeff Mesnil
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 states (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-factory-stats
[2] https://github.com/rh-messaging/artemis-wildfly-integration/blob/master/src/main/java/org/jboss/activemq/artemis/wildfly/integration/WildFlyActiveMQXAResourceWrapper.java
[3] https://github.com/ironjacamar/ironjacamar/blob/1.3/core/src/main/java/org/jboss/jca/core/connectionmanager/tx/TxConnectionManagerImpl.java#L714
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list