Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-453 JPA 2.0 implementation
  3. AS7-564

Applications should be able to inject a persistence context/unit from a separate deployment by using a fully scoped (appname#puname) reference

    Details

    • Type: Sub-task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 7.0.0.Beta1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      A few things needs to happen for this to work.

      1. Deployments that use container managed JPA support, need to be recognized by the JPADependencyProcessor. JPADependencyProcessor will inject the JPA dependencies into the deployment, so that it can access JPA stuff.

      2. JPADependencyProcessor currently runs during DEPENDENCIES phase but we don't recognize annotations (JPAAnnotationParseProcessor) until later during the POST_MODULE phase.

      Either we need to change JPAAnnotationParseProcessor to not use Attachments.COMPOSITE_ANNOTATION_INDEX (so we can move JPAAnnotationParseProcessor to the PARSE phase) or Attachments.COMPOSITE_ANNOTATION_INDEX needs to be built during the PARSE phase (again, allowing moving of JPAAnnotationParseProcessor to the PARSE phase).

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                smarlow Scott Marlow
                Reporter:
                smarlow Scott Marlow
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: