[infinispan-issues] [JBoss JIRA] (ISPN-5400) Make JpaStore class loader for entity class configurable
Tuomas Kiviaho (JIRA)
issues at jboss.org
Wed Apr 22 02:12:33 EDT 2015
Tuomas Kiviaho created ISPN-5400:
------------------------------------
Summary: Make JpaStore class loader for entity class configurable
Key: ISPN-5400
URL: https://issues.jboss.org/browse/ISPN-5400
Project: Infinispan
Issue Type: Feature Request
Components: Loaders and Stores
Affects Versions: 7.1.1.Final
Reporter: Tuomas Kiviaho
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.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the infinispan-issues
mailing list