-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Specific entity cache configuration ignored in Infinispan
PostPosted: Thu Apr 03, 2014 8:29 am 
Newbie

Joined: Thu Apr 19, 2007 10:38 am
Posts: 11
Does the region name specified in the mapping file of a persistent entity correspond to the cache with the same name in the infinispan config file? In other words, does the hibernate-infinispan integration apply the configuration of the cache declared in the infinispan config file that has the same name as the entity region declared in the mapping file?
For example, suppose the following mapping file:
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
   <class name="org.myself.EntityA" table="ENTITY_A">
      <cache region="EntityA-cache" usage="read-only"/>
...
</hibernate-mapping>

Does hibernate-infinispan integration build the entity region "EntityA-cache" using the followin configuration declared in the infinispan configuration file?
Code:
   <namedCache name="EntityA-cache">
      <clustering mode="replication">
         <async/>
      </clustering>
      <locking isolationLevel="READ_COMMITTED" concurrencyLevel="1000"
               lockAcquisitionTimeout="15000" useLockStriping="false"/>
      <eviction strategy="NONE"/>
   </namedCache>

We've done some tests and it appears that the configuration of the specific cache is ignored and instead the configuration of the generic cache named "entity" is used.
We are using the following versions:
Hibernate ORM 4.2.10.Final
Infinispan core 5.3.0.Final


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.