Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-2901

JCR-2523 break the transaction handling in container managed environment

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.1.3, 2.2.4
    • Fix Version/s: 2.1.5, 2.2.5
    • Component/s: jackrabbit-jca
    • Environment:
      Container managed transactions on jboss 4.2.3 with spring-jcr-modules

      Description

      during the cleanup (returning to the pool) of an jca managed connection, an new internal session is created in the object JCAManagedConnection in the method cleanup, this is supposed to fix JCR-2523, The sideeffect is, that the XA-Resource (variable-xaResource) in JCAManagedConnection is not anymore the same XASessionImpl Object like the session Object. Subsequent calls on this connection, lead that the internal session variable is not anymore informed about the current transaction context. (XAItemStateManager, variables tx and txLog are null), because only the xaResource is informed about the new transaction context. Result is that the complete transaction handling does not work anymore.
      I attached a sample project which shows this behaviour.

        Attachments

        1. JCR-2901.patch
          1 kB
          Claus Köll
        2. JCR-2901-working.patch
          2 kB
          Andreas Zschorn
        3. testproject.zip
          8 kB
          Andreas Zschorn

          Activity

            People

            • Assignee:
              c_koell Claus Köll
              Reporter:
              azschorn Andreas Zschorn
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: