Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-5400

Make JpaStore class loader for entity class configurable

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • Major
    • None
    • 7.1.1.Final
    • Loaders and Stores
    • None

    Description

      JpaStore entity class is loaded using Infinispan's class loader. This is not ideal in environments such as OSGi where Infinispan and entities may locate in different class loaders.

      My workaround was to patch JpaStoreConfigurationParser71.parseJpaCacheStore to utilize the entity class loader I has earlier passed to configuration builder holder. By default it seems to point to thread class loader so it should work in modern OSGi environments out-of-the-box.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tuomas_kiviaho Tuomas Kiviaho (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: