-->
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.  [ 2 posts ] 
Author Message
 Post subject: How to define cache for set in ehcache.xml
PostPosted: Tue Dec 09, 2003 9:57 am 
Regular
Regular

Joined: Mon Sep 08, 2003 4:53 am
Posts: 70
Location: Germany
I configured caches for classes in the ehcache.xml file successful. (E.g. for class xxx.yyy.zzz.class1 I configured

Code:
<cache name="xxx.yyy.zzz.class1"
   maxElementsInMemory="10000"
   eternal="true"
   overflowToDisk="true"/>

Now I want to configure a cache for a set TestSet of class1, too. I tried
Code:
<cache name="xxx.yyy.zzz.class1.TestSet"
   maxElementsInMemory="10000"
   eternal="true"
   overflowToDisk="true"/>

but I got the warning
Quote:
Could not find configuration for xxx.yyy.zzz.class1.TestSet. Configuring using the defaultCache settings.


How can I configure the cache for the set? Thanks in advance.

P.S.: I'm using the latest version of ehcache.jar and hibernate 2.1RC1


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 09, 2003 11:11 am 
Regular
Regular

Joined: Mon Sep 08, 2003 4:53 am
Posts: 70
Location: Germany
Sorry for posting. It works!


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