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

Scott Marlow smarlow at redhat.com
Tue Aug 16 11:22:40 EDT 2011


On 08/16/2011 11:08 AM, Sanne Grinovero wrote:
>> 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?
>
> That sounds like a good plan

Thanks for the help!  :)

Seems to work so far.  I'm doing a little more testing...

FYI, the following debug log output is from running my test case.  This 
gives an idea of what the cache region names are for my three test PUs 
(mypc, SecondPU, ThirdPU):

Building entity cache region 
[jpa_SecondLevelCacheTestCase.jar#mypc.org.jboss.as.testsuite.integration.jpa.hibernate.Employee]

Building entity cache region 
[jpa_SecondLevelCacheTestCase.jar#SecondPU.org.jboss.as.testsuite.integration.jpa.hibernate.Employee]

Building entity cache region 
[jpa_SecondLevelCacheTestCase.jar#ThirdPU.org.jboss.as.testsuite.integration.jpa.hibernate.Employee]



More information about the hibernate-dev mailing list