Application Server 3  4  5 and 6
  1. Application Server 3 4 5 and 6
  2. JBAS-6918

"trackByTxn" always gets displayed as "false" in the output of the "listStatistics" operation for Connection Factories and Datasources

    Details

    • Similar Issues:
      Show 10 results 

      Description

      Steps to reproduce:

      Create a Tx Connection Factory with "track-connection-by-tx" set to "true". Then, invoke the "listStatistics" operation using the Embedded Console. The value of "trackByTxn" gets displayed as "false" instead of "true", as seen in the attached screenshot.

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            Ian Springer added a comment -

            Just to clarify, it's deprecated for all types of datasources and connection factories, or just for XA datasources and connection factories?

            Show
            Ian Springer added a comment - Just to clarify, it's deprecated for all types of datasources and connection factories, or just for XA datasources and connection factories?
            Hide
            Ondrej Zizka added a comment -

            And to clarify more, does the property "interleaving" have the same meaning as negated track-conn... ?

            Show
            Ondrej Zizka added a comment - And to clarify more, does the property "interleaving" have the same meaning as negated track-conn... ?
            Hide
            Charles Crouch added a comment -

            Back to Jason for more info

            Show
            Charles Crouch added a comment - Back to Jason for more info
            Hide
            Jesper Pedersen added a comment -

            From the docs:

            1. <track-connection-by-tx> - whether the connection should be "locked" to the transaction, returning it to the pool at the end of the transaction; in pre-JBoss-5.x releases the default value for Local connection factories is true and false for XA; since JBoss-5.x the default value is true for both Local and XA and the element is deprecated.
            2. <interleaving/> - enables interleaving for XA connection factories (added in JBoss-5.x)

            The element is deprecated.

            Let me know if I should remove it from the template.

            Show
            Jesper Pedersen added a comment - From the docs: <track-connection-by-tx> - whether the connection should be "locked" to the transaction, returning it to the pool at the end of the transaction; in pre-JBoss-5.x releases the default value for Local connection factories is true and false for XA; since JBoss-5.x the default value is true for both Local and XA and the element is deprecated. <interleaving/> - enables interleaving for XA connection factories (added in JBoss-5.x) The element is deprecated. Let me know if I should remove it from the template.
            Hide
            Ian Springer added a comment -

            Can you remove the trackByTxn element from the map that is returned by the listStatistics managed operation? It appears the value isn't accurate, since it is always false, even when the track-connection-by-tx managed property is set to true. I think it will only confuse users.

            Show
            Ian Springer added a comment - Can you remove the trackByTxn element from the map that is returned by the listStatistics managed operation? It appears the value isn't accurate, since it is always false, even when the track-connection-by-tx managed property is set to true. I think it will only confuse users.

              People

              • Assignee:
                Jesper Pedersen
                Reporter:
                Farah Juma
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Development