9 Replies Latest reply on Aug 27, 2008 8:58 AM by Alexey Loubyansky

    JBAS-5171 - New metadata - track-connection-by-tx

    Adrian Brock Master


      Can this be considered as proper?

      Index: main/org/jboss/resource/metadata/mcf/ManagedConnectionFactoryDeploymentMetaData.java
      --- main/org/jboss/resource/metadata/mcf/ManagedConnectionFactoryDeploymentMetaData.java (revision 69385)
      +++ main/org/jboss/resource/metadata/mcf/ManagedConnectionFactoryDeploymentMetaData.java (working copy)
      @@ -495,7 +495,7 @@
      public Boolean getTrackConnectionByTransaction()
      - return trackConnectionByTransaction;
      + return getLocalTransactions() || trackConnectionByTransaction;

      Why don't you do what I did in the TxConnectionManager.
      i.e. setTrackConnectionByTransaction(true) when setLocalTransactions(true)?

      But anyway, we should really make transaction affinity the default
      and force users to enable interleaving (see the JIRA issue and other
      discussion in this forum).

      JBoss5 is a good time to do that.
      Most people don't understand what Interleaving is. That goes for both
      users and resource adapter writers. :-)
      So having it the default for XA just leads to FAQs - assuming that people
      even understand what the problem is.