-->
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: Does hibernate support EHcache clusterable
PostPosted: Mon Aug 03, 2009 5:03 pm 
Newbie

Joined: Sat May 30, 2009 2:47 am
Posts: 12
Hi,

EHcache is a clusterable cache for a while. If I use EHcache as second level cache, and use read-write access strategy, but not in JTA environment, (means using tomcat server, not some application servers), will any operation unpredictable.

I've done some initial testing to verify the cache item does replicate to another cache instance in cluster (under the same multicast address).

In this hibernate documentation (http://docs.jboss.org/hibernate/stable/ ... ance-cache), it says "If you want to use this strategy in a cluster, you should ensure that the underlying cache implementation supports locking. The built-in cache providers do not support locking".

1. What kind of locking it refers to? I don't recall that ehcache has any API relates to locking?
2. If no such locking is provided at ehcache level, what inconsistent behavior we will see?
3. What happens if two DB updates just finish from two servers, and then both server will put the changes (older change into server1, newer change into server2) into cache at the same time? What will happen?

I look forward to your reply. Thanks.


Shaoxian Yang


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.