[jboss-jira] [JBoss JIRA] Commented: (AS7-1393) Make Infinispan default 2nd level cache provider for hibernate
Scott Marlow (JIRA)
jira-events at lists.jboss.org
Sat Jul 23 23:10:29 EDT 2011
[ https://issues.jboss.org/browse/AS7-1393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12616064#comment-12616064 ]
Scott Marlow commented on AS7-1393:
-----------------------------------
If there isn't a bigger underlying problem that your trying to solve. It looks like we can check if "hibernate.cache.infinispan.cachemanager" is set and then default the "hibernate.cache.region.factory_class" property to "org.hibernate.cache.infinispan.JndiInfinispanRegionFactory" (if its not already set). That seems easy to do.
There is probably more that we can do (depending on the underlying provider, we could check shared-cache-mode), but I'd like to understand what pain this is causing (if any).
> Make Infinispan default 2nd level cache provider for hibernate
> --------------------------------------------------------------
>
> Key: AS7-1393
> URL: https://issues.jboss.org/browse/AS7-1393
> Project: Application Server 7
> Issue Type: Enhancement
> Components: JPA / Hibernate
> Affects Versions: 7.0.0.Final
> Reporter: Paul Ferraro
> Assignee: Scott Marlow
> Fix For: 7.0.1.Final, 7.1.0.Alpha1
>
>
> I thought this was the already the case, but apparently it isn't yet.
> Users should not need to specify a value for hibernate.cache.region.factory_class in their persistence.xml.
> If undefined, the jpa subsystem should default the hibernate.cache.region.factory_class to "org.hibernate.cache.infinispan.JndiInfinispanRegionFactory". Likewise, the requisite hibernate.cache.infinispan.cachemanager property should default to "java:jboss/infinispan/hibernate".
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list