Uploaded image for project: 'PUBLIC - Liferay Documentation'
  1. PUBLIC - Liferay Documentation
  2. LRDOCS-7255

Explain the potentail pitfalls of method-prefixing and transactions in SB classes

    Details

    • Type of Documentation:
      Developer: Application Development

      Description

      ServiceBuilderArgs seems to contain prefixes that precipitate a READ only database transaction. If you try to call a method intended for persisting data within one of these methods (a nested service call), persistence will fail.

      Explain in the docs how the method prefixing works, and explain the dangers of nesting service calls that require a READ-WRITE transaction inside of a method that will only precipitate a READ transaction.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Packages

                Version Package
                7.2.x