-->
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: Coherence as Hibernate L2 Cache
PostPosted: Wed Jan 09, 2013 1:48 am 
Newbie

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>


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.