Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-1247

EntityManagerFactoryManager: remove the try of creation of EntityManagerFactories from Bundle.RESOLVED event

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • jpa-container-1.0.1
    • jpa-container-1.0.2
    • JPA
    • None

    Description

      EntityManagerFactoryManager:
      As it was already mentioned in ARIES-1160, I do not see any benefit for trying to create EntityManagerFactories on Bundle.RESOLVED event.
      On time of Bundle.RESOLVED the bundle context is still not initialized and trying of creation EntityManagerFactory will likely failed (Hibernate and EclipseLink implementations are failed by lookup of DataSource service).
      It only confuses user with a stack trace.
      The EntityManagerFactories will be created a tick later on Bundle.ACTIVE event by calling registerEntityManagerFactories() method.

      Patch is attached.

      Attachments

        Activity

          People

            cschneider Christian Schneider
            ashakirin Andrei Shakirin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: