-->
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: Use of ehcache BlockingCache with hibernate
PostPosted: Mon Oct 05, 2009 12:03 pm 
Beginner
Beginner

Joined: Fri May 12, 2006 9:58 am
Posts: 32
Hello

I have a high traffic site and I use hibernate with ehcache to cache some entities and queries.
The problem is that when a cache region invalidates I'm getting that cache region repopulated many-many times by different threads (because the site is being hit by many users at the same time).

This scenario is described at http://ehcache.org/documentation/constr ... ocId937608 but on a higher level (web page level).

I managed to convert 1 entity and 1 query cache to a BlockingCache by providing my own implementation at hibernate.cache.provider_class but the semantics of BlockingCache do not seem to work. Even worst sometimes the BlockingCache deadlocks.

How do you solve this in production?
Is anyone else using BlockingCache in entity, query and collection caches?

I use hibernate and ehcache latest.

thanks a lot
Ioannis


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.