Uploaded image for project: 'WINDUP - Red Hat Application Migration Toolkit'
  1. WINDUP - Red Hat Application Migration Toolkit
  2. WINDUP-1334

Transformation Quickfix for Lazy DB writes for EJB transactions

XMLWordPrintable

    • Test Sprint - temp

      The WebLogic <delay-updates-until-end-of-tx> configuration element, which defaults to true, is used for performance reasons to delay updates to the persistent store of all beans until the end of the transaction. When set to false, updates are sent to the database after each method invocation, but are not committed until the end of the transaction. This allows other processes to access the persisted data while the transaction is waiting to be completed. In JBoss EAP 6, the same behavior can be achieved by specifying the <sync-on-commit-only> in the jbosscmp-jdbc.xml file.

      An example: weblogic-ejb-jar.xml:

      <entity-descriptor>
      <persistence>
      ...
      ...
      <delay-updates-until-end-of-tx>false</delay-updates-until-end-of-tx>
      </persistence>
      </entity-descriptor>
      To fix:

      Remove element from weblogic-ejb-jar.xml and add to jbosscmp-jdbc.xml:

      <jbosscmp-jdbc>
      ...
      <entity>
      ...
      <!-- elements removed for readability -->
      <sync-on-commit-only>false</sync-on-commit-only>
      </entity>
      </jbosscmp-jdbc>

            josteele John Steele
            josteele John Steele
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: