[hibernate-dev] Question about Hibernate 4.0 Infinispan second level cache usage...

Scott Marlow smarlow at redhat.com
Tue Aug 16 12:49:43 EDT 2011


>>
>> I could try setting AvailableSettings.CACHE_REGION_PREFIX to the
>> application scoped pu name.  That seems to get added to the region name
>> (region would then be: application name + PU jar name + PU name + entity
>> class).
>>
>> Would that be likely to work?
>
> I think so.  This is what I was getting at in terms of how to augment
> the cache named generated by the hibernate-infinspan provider to include
> the pu name.  I originally suggested having the JPA integration code
> populate a persistence property that could be recognized by the
> hibernate-infinispan provider.  The CACHE_REGION_PREFIX seems to fit the
> bill.  I would just be careful to make sure the existing use case for a
> region prefix is still respected (not that I know for sure what that
> is).
>

Yes, that was a good suggestion and yes, if its already set, we will use 
the application specified CACHE_REGION_PREFIX.





More information about the hibernate-dev mailing list