Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-406

PersistenceUnits#instance singleton does not work in EAR scenarios

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 0.5
    • None
    • JPA-Module
    • None

    Description

      Currently the info regarding the various persistence.xml files on the classpath only gets scanned once and stored in the static PersistenceUnits#instance.
      This does not work in EAR scenarios if one of the persistence.xml is in a webapp or if the deltaspike-data-impl is on any other shared ClassLoader.

      We should at least document this restriction it until it's properly fixed.

      A possible fix would be to have a (weak) Map<ClassLoader, PersistenceInfo> which also looks up the parent ClassLodaer chain.

      Attachments

        Activity

          People

            struberg Mark Struberg
            struberg Mark Struberg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: