Hello Navin,
Thanks for reply.
I have set following in persistence.xml
<property name="hibernate.cache.use_second_level_cache" value="true"/>
<property name="hibernate.cache.use_query_cache" value="true"/>
<property name="hibernate.cache.region.factory_class"
value="org.hibernate.cache.infinispan.JndiInfinispanRegionFactory"/>
<property name="hibernate.cache.infinispan.cachemanager"
value="java:CacheManager"/>
<property name="hibernate.cache.region.factory_class"
value="org.hibernate.cache.infinispan.InfinispanRegionFactory"/>
I want to implement caching using default configuration.
I think for default configuration u should not required configuration file.
Is it correct?
thats why i have used GlobalConfiguration.
Please help me regarding this...
Thanks,
Amol