-->
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: 2nd level cache - collections are locked?
PostPosted: Sun Jun 04, 2006 12:52 pm 
Beginner
Beginner

Joined: Sun Jan 22, 2006 6:56 am
Posts: 29
I'm using the 2nd level cache to do some performance optimizations. I've specified both entity and collection cache-usage (read-write) using EhCache (and defined the needed regions).
Printing out the statistics I see cache misses even on very simple test cases (storing an entity with a collection and then loading it). Entities and queries get hit correctly, but collections miss.
I've activated logging and I see the following message:

Code:
Cached item was locked: foo.bar.myCollection#418396


And a bit above it I see:

Code:
Releasing: foo.bar.myCollection#418396


I tried even adding Thread.sleep between the writing transaction and the reading transaction (tried over 60 seconds) hoping the lock will timeout, but to no avail.

Any ideas?

Hibernate version:
3.1


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.