]
Michael Musgrove commented on WFLY-4323:
----------------------------------------
We deprecated enable-statistics in favour of statistics-enabled (see commit f6c2527).
Using either name will update the new attribute in the model but
TransactionSubsystemAdd#performCoordinatorEnvBoottime is asking the model for the old
deprecated attribute which in the model is now undefined.
The fix is for TransactionSubsystemAdd to ask for the new attribute, ie
TransactionSubsystemRootResourceDefinition.STATISTICS_ENABLED
Transaction metrics all zero
----------------------------
Key: WFLY-4323
URL:
https://issues.jboss.org/browse/WFLY-4323
Project: WildFly
Issue Type: Bug
Components: Transactions
Affects Versions: 8.2.0.Final
Environment: Linux, JDK 1.7, Spring 4, Hibernate
Reporter: Tim Mickelson
Assignee: Michael Musgrove
Hello, I have enabled the transactions metrics in standalone.xml on my Wildfly 8.2.0 as
below but the transactions metrics are always zero, even though I have many projects
deployed using transactions. Probably something trivial is missing, could some one tell me
what is wrong? I'm using the Spring Framework 4.1.2 and Hibernate as installed in the
Wildfly modules.
I started this as a question on the forum but got no answer. Please note that the exact
same configuration on the same server gives Transaction statistics with the same
deployments on JBoss 7.1.1
Thanks for any help, Tim Mickelson
<subsystem xmlns="urn:jboss:domain:transactions:2.0">
<core-environment>
<process-id>
<uuid/>
</process-id>
</core-environment>
<recovery-environment socket-binding="txn-recovery-environment"
status-socket-binding="txn-status-manager"/>
<coordinator-environment default-timeout="300"
statistics-enabled="true"/>
</subsystem>
The datasource is configured as (with jta true):
<datasource jta="true" jndi-name="java:/youconnect"
pool-name="youconnect_Pool" enabled="true"
use-java-context="true" use-ccm="true">
<connection-url>jdbc:postgresql://127.0.0.1:5432/youconnect</connection-url>
<driver-class>org.postgresql.Driver</driver-class>
<driver>ps</driver>
<pool>
<min-pool-size>10</min-pool-size>
<max-pool-size>30</max-pool-size>
<prefill>true</prefill>
<flush-strategy>IdleConnections</flush-strategy>
</pool>
<security>
<user-name>yyyy</user-name>
<password>xxxxx</password>
</security>
</datasource>