-->
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.  [ 3 posts ] 
Author Message
 Post subject: ehcache and two or more data sources
PostPosted: Sun May 23, 2004 5:01 am 
Newbie

Joined: Sun May 23, 2004 4:46 am
Posts: 2
Hi All,

I'm using hibernate 2.1.3 and ehcache as a simple read-only cache. I have several data sources - dev, test, prod - that have the same schema and mappings. I'm accessing all of them in my web app.
From browsing the source code for the ehcache hibernate provider, it seems to me that ehcache can't work in this setup. I'm opening a session factory for each data source but the cache provider is using the default CacheManager and thus the same caches for all data sources.

Am I totally wrong?

10x

Slavik.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 23, 2004 1:06 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
hibernate.cache.region_prefix


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 23, 2004 4:30 pm 
Newbie

Joined: Sun May 23, 2004 4:46 am
Posts: 2
10x,
It looks like this will do the trick...


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