-->
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.  [ 1 post ] 
Author Message
 Post subject: Multiple SessionFactories and caches
PostPosted: Thu Feb 24, 2005 3:37 pm 
Newbie

Joined: Mon Sep 27, 2004 2:15 am
Posts: 11
Location: Helsinki, Finland
We've got multiple SessionFactories due to having multiple databases; each db has the same schema so each SessionFactoy shares the same class mapping files. We enabled Ehcache for one of the factories by setting hibernate.cache.provider_class in the factory's configuration. Mysteriously, though, one of the SessionFactories that has not had cache enabled is nevertheless using that cache. I'm a bit confused now -- shouldn't each SessionFactory set up its own cache and keep it private and separate from all other sessionfactories? I guess not? We're using Hibernate 2.1.7c.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.