Joined: Wed Mar 08, 2006 3:31 am Posts: 5
|
Hi All,
I'm looking to use Coherence to replicate my hibernate query cache and need some pointer if possible.
The references on the Oracle website is out of date (last update 2010...hibernate3)...here's the best that I've found online http://middlewaremagic.com/weblogic/?p=8038
My major question is that the comments on org.hibernate.testing.cache.CachingRegionFactory
says that it should only be used for testing....is there a class that provides this functionality that's production ready? or will I have to implement some like in the middlewaremagic article above?
thanks in advance
f
<bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean"> <property name="dataSource" ref="dataSource" /> <property name="hibernateProperties"> <props> <prop key="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</prop> <prop key="hibernate.show_sql">false</prop> <prop key="hibernate.format_sql">false</prop> <prop key="hibernate.cache.use_query_cache">true</prop> <prop key="hibernate.cache.use_second_level_cache">true</prop> <!--<prop key="hibernate.cache.region.factory_class">cache.CoherenceRegionFactory</prop>--> <prop key="hibernate.cache.region.factory_class">org.hibernate.testing.cache.CachingRegionFactory</prop> <prop key="hibernate.cache.provider_class">com.tangosol.coherence.hibernate.CoherenceCacheProvider</prop> <prop key="hibernate.cache.generate_statistics">true</prop> <prop key="hibernate.generate_statistics">true</prop> </props> </property>
|
|