-->
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.  [ 7 posts ] 
Author Message
 Post subject: experience using ehcache
PostPosted: Fri Dec 05, 2003 10:53 am 
Regular
Regular

Joined: Mon Sep 08, 2003 4:53 am
Posts: 70
Location: Germany
I marked a class as
Code:
<cache usage="read-only"/>
in the Mapping file. In the ehcache.xml file the parameters for my class are
Code:
<cache name="..."
maxElementsInMemory="10000"
eternal="true"
overflowToDisk="true"/>

It seems to me, that objects of this class will be cached, until the session will be flushed. Than the objects were loaded from the db, again.

Does anybody use ehcache, since it's released? Is it enough to mark the class to be cached or should I mark every collection as to be cached, too?

I added net.sf.ehcache.level=FINE to my logging.properties, but nothing will be logged. What can I do to see log outputs with the JDK 1.4 Logger?

Thanks in advance


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 05, 2003 1:22 pm 
Newbie

Joined: Tue Nov 25, 2003 5:05 pm
Posts: 18
It's a bug:
http://forum.hibernate.org/viewtopic.php?t=926067

Viele Gr


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 08, 2003 5:58 am 
Regular
Regular

Joined: Mon Sep 08, 2003 4:53 am
Posts: 70
Location: Germany
Thanks for the info. I've downloaded the latest nightly build of Hibernate this morning (including ehcache.jar from Dec, 04), but it seems to me, that nothing changed. Is your problem fixed with this version?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 08, 2003 7:24 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
I can confirm that ehcache/Hibernate integration is absolutely working in the current v21branch CVS build.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 08, 2003 11:19 am 
Regular
Regular

Joined: Mon Sep 08, 2003 4:53 am
Posts: 70
Location: Germany
Sorry for having doubt. Caching works better, after I've marked not only the classes with <cache usage="read-only"/>, but also every set in the mapping file.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 15, 2003 10:47 am 
Beginner
Beginner

Joined: Mon Nov 03, 2003 11:48 pm
Posts: 29
andreas wrote:
Sorry for having doubt. Caching works better, after I've marked not only the classes with <cache usage="read-only"/>, but also every set in the mapping file.

What do you mean "ever set in the mapping file" ? I am also having an issue with getting ehcache to work across session closes.
--Angus


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 15, 2003 11:16 am 
Regular
Regular

Joined: Mon Sep 08, 2003 4:53 am
Posts: 70
Location: Germany
I ment, that I had to add <cache usage="read-only"/> to <set> elements, too. E.g.:
Code:
<set
       name="TestSet"
       table="TEST_SET"
       lazy="true">
       <cache usage="read-only"/>
       <key column="TEST_ID"/>
       ...
</set>


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 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.