-->
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: Disable second level cache
PostPosted: Sun Nov 12, 2006 5:11 pm 
Beginner
Beginner

Joined: Thu Nov 02, 2006 2:23 pm
Posts: 33
Hey,

I have problem in ehcache (The disk store is not active) , so i decide to disable the cache.

I change in the hibernate.properties the second level cache to be disabled , but apperantly this is not enough since i still get ehcache exceptions.

How can i disable the cache?

How can i be sure that hibernate not using in cache?


hibernate version is 3.1
Thank you


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 12, 2006 8:37 pm 
Beginner
Beginner

Joined: Thu May 05, 2005 11:12 pm
Posts: 26
My understanding is that hibernate requires EHCache for its own purposes so you can't just remove it. There are several ways that you can make hibernate use 2nd level caching. So you need to make sure that...

None of your class mapping files have a
Code:
<cache usage=...  />
entry.

Also make sure your hibernate.cfg.xml does not have a
Code:
<class-cache ...
or
Code:
<query-cache ...
entry.

These tell hibernate to use the second level cache.

Hope that helps

Andrew[/code]


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.