glassfish
  1. glassfish
  2. GLASSFISH-309

AnnotationProcessor should report error when appclient uses @PersistenceContext

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 9.0pe
    • Fix Version/s: 9.0pe
    • Component/s: deployment
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      309

      Description

      Since JTA is not required to be supported in ACC and GlassFish does not support
      JTA in ACC, an application client can not use container managed entity manager
      in GlassFish. This implies, an application client can not use
      @PersistenceContext to inject an entity manager as that is used to inject a
      container manager entity manager. Verifier would like to report such use as a
      failure. Currently annotation processor ignores this annotation. We need an
      error (using ErrorHandler framework) from annotation processor when it
      encounters @PersistenceContext in an appclient.

        Issue Links

          Activity

          Hide
          Hong Zhang added a comment -

          Add a check in EntityManagerReferenceHandler.

          Show
          Hong Zhang added a comment - Add a check in EntityManagerReferenceHandler.
          Hide
          Hong Zhang added a comment -

          Throw exception if the PersistenceContext annotation is used in appclient.
          Verifier should be able to get error message back this way.

          Show
          Hong Zhang added a comment - Throw exception if the PersistenceContext annotation is used in appclient. Verifier should be able to get error message back this way.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: