Radim Vansa created WFLY-5963:
---------------------------------
Summary: Custom caches not injected into cache container
Key: WFLY-5963
URL:
https://issues.jboss.org/browse/WFLY-5963
Project: WildFly
Issue Type: Bug
Components: JPA / Hibernate
Affects Versions: 10.0.0.CR5
Reporter: Radim Vansa
Assignee: Scott Marlow
Hibernate ORM using Infinispan Second Level Cache allows to let certain entities use
different cache configuration, using property
{{hibernate.cache.infinispan._com.example.Entity_.cfg=_anotherCache_}}
However, as the dependency to cache _anotherCache_ is not defined in
{{InfinispanCacheDeploymentListener.addCacheDependencies}} (this method lists only the
default caches), the cache configuration is not set in the cache manger. ORM then
retrieves the configuration for cache _anotherCache_, but as it was not inserted to the
cache manager, the cache manager will return default cache configuration (which can be
e.g. local when a clustered cache is required). No warning or notification that the
configuration was not copied from WF's standalone.xml to cache manager is emitted.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)