-->
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: Is second-level cache enabled?
PostPosted: Wed Dec 29, 2004 10:58 am 
Regular
Regular

Joined: Thu Oct 07, 2004 4:45 pm
Posts: 92
Every time Hibernate starts, I see the following line in the log:

Code:
SettingsFactory:129 - cache provider: net.sf.hibernate.cache.EhCacheProvider

As far as I can tell, I am not specifying a second-level cache provider in my configuration and I don't want to use one. Does this line indicate that the cache is turned on? And if so, how?

For what it's worth, I'm using Hibernate 2.1.6 with the Spring Framework 1.1.2. I don't see anything to indicate that Spring is enabling the cache, though.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 29, 2004 11:34 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
EHCache is just the default provider (there is no way to switch to "no" provider). The cache however is not active unless you start <cache>ing persistent classes. All of this is documented in the reference documentation, chapter "Performance".


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.