Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-1195

enforce startup dependency of EntityManagerFactory on Ejb

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.2.1.GA
    • Fix Version/s: 1.3.0.ALPHA
    • Component/s: Core
    • Labels:
      None

      Description

      A war project created by seam gen uses an EntityManagerFactory component. Integration tests using the Embedded EJB container work because the Ejb component starts before the EMF component, but this is by chance only. If the EMF component starts before the Ejb component, it fails. This has been experienced when trying to run a war project on Tomcat.

      I'll attach a test that shows this.

      I believe the solution would be to add "org.jboss.seam.core.ejb" to the depends list of EntityManagerFactory's @Startup annotation.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                gavin.king Gavin King
                Reporter:
                matt.drees Matt Drees
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: