glassfish
  1. glassfish
  2. GLASSFISH-121

new assertion: getTransaction() must not be called for JTA entity manager

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 9.0pe
    • Fix Version/s: not determined
    • Component/s: verifier
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      121

      Description

      Secion 3.1.1 of Java Persistence API 1.0 PFD says the following:

      /**

      • Return the resource-level transaction object.
      • The EntityTransaction instance may be used serially to
      • begin and commit multiple transactions.
      • @return EntityTransaction instance
      • @throws IllegalStateException if invoked on a JTA
      • EntityManager or an EntityManager that has been closed.
        */
        public EntityTransaction getTransaction();

      Verifier should report error if a program uses getTransaction() on a JTA entity
      manager.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Sanjeeb Sahoo
            Reporter:
            Sanjeeb Sahoo
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: