-->
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.  [ 5 posts ] 
Author Message
 Post subject: Cache contents timing-out?
PostPosted: Wed Mar 31, 2004 4:45 pm 
Beginner
Beginner

Joined: Mon Feb 09, 2004 3:15 pm
Posts: 34
I am caching a query:

Code:
questionsQuery.setCacheable(true);


and have specified the objects that get returned by the query to be cached:

Code:
<cache usage="read-only"/>



The caching appears to work when i make a number of repeated query attempts...i.e. there no sql statements appearing in STDOUT and the results are returned.

However, if I wait a few minutes, the query hits the DB again.

It seems like the the cache results are getting "timed-out". Anyone know why?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 31, 2004 5:10 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Configure the second-level cache system, specific to your choosen Cache Provider (e.g. ehcache.properties).

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 31, 2004 5:16 pm 
Beginner
Beginner

Joined: Mon Feb 09, 2004 3:15 pm
Posts: 34
Do you have any links for documentation about ehcache?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 31, 2004 5:18 pm 
Beginner
Beginner

Joined: Mon Feb 09, 2004 3:15 pm
Posts: 34
How does ehcache.properties get deployed in JBoss?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 31, 2004 5:28 pm 
Pro
Pro

Joined: Tue Aug 26, 2003 1:24 pm
Posts: 213
Location: Richardson, TX
I put my ehcache.xml into the root directory of my hibernate sar.


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