-->
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: How to deactivate totaly the second level cache ?
PostPosted: Thu Mar 17, 2005 2:14 pm 
Newbie

Joined: Thu Mar 17, 2005 2:00 pm
Posts: 4
Hibernate version: 2.1.6

Name and version of the database you are using: Oracle 8i



Hi all !

Currently, I'm using Coherence secondary level cache, with our own CacheProvider class, and we would like to deactivate it without modifying the code, i.e just by modifying hibernate properties. Is that possible ? I did set the hibernate.cache.use_query_cache=false but it seems that Coherence cache are still active, even if not used.

Thank you

Yazid


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 18, 2005 1:20 am 
Newbie

Joined: Tue Feb 01, 2005 8:18 am
Posts: 8
The entry in the configuration (in proeprties file) gives the second level cache provider
E.g.
hibernate.cache.provider_class net.sf.hibernate.cache.EhCacheProvider

Here , EHcache is the cache provider .
You should comment this entry .


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 18, 2005 1:27 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
actually no, it is hibernate.cache.use_second_level_cache


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 18, 2005 2:42 am 
Newbie

Joined: Tue Feb 01, 2005 8:18 am
Posts: 8
gavin wrote:
actually no, it is hibernate.cache.use_second_level_cache


I did not find

hibernate.cache.use_second_level_cache

in constants list ( i.e in doc\api\constant-values.html) for Hibernate 2.1.6

Also I chked using the property but it did not enable or disable the second level cache ( when used for Hibernate 2.1.6 )


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 18, 2005 5:15 am 
Newbie

Joined: Thu Mar 17, 2005 2:00 pm
Posts: 4
Thank you for help ... but, in fact

hibernate.cache.use_second_level_cache

doesn't seem to be present in version 2.1.6 (doesn't appear in Environment class).

I saw in the code, and it seems that if I don't provide a CacheProvider parameter (hibernate.cache.provider_class), it will take, by default, EhCache

Any idea ?

Yazid


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.