-->
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.  [ 3 posts ] 
Author Message
 Post subject: Which second-level cache implementations are compatible wit
PostPosted: Fri Feb 24, 2012 4:18 am 
Newbie

Joined: Wed Sep 14, 2011 1:05 pm
Posts: 3
Which second-level cache implementations are compatible with Hibernate 4?

I've tried ehcache-core-2.5.1 with ehcache-core-2.5.1, but found it incompatible with

java.lang.ClassNotFoundException: org.hibernate.cache.TimestampsRegion

This interface was probably moved to org.hibernate.cache.spi.TimestampsRegion in Hibernate 4.

Regards,
Vladimir


Top
 Profile  
 
 Post subject: Re: Which second-level cache implementations are compatible wit
PostPosted: Fri Feb 24, 2012 4:25 am 
Expert
Expert

Joined: Tue Jun 16, 2009 3:36 am
Posts: 990
I use Hiberante4 (4.1.0) and EHCache(EHCache2.4.3 but also EHCache2.5.0 seem to be compatible) successfully by using following settings:

Quote:
<property name="hibernate.cache.region.factory_class" value="org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory"/>


and hibernate-ehcache.jar included in classpath


Top
 Profile  
 
 Post subject: Re: Which second-level cache implementations are compatible wit
PostPosted: Fri Feb 24, 2012 7:55 am 
Newbie

Joined: Wed Sep 14, 2011 1:05 pm
Posts: 3
Thank you pb00067,

the cache seems to work now.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

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.