-->
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: multiple DB's and ehcache.
PostPosted: Thu Sep 16, 2004 11:45 am 
Beginner
Beginner

Joined: Mon Nov 03, 2003 11:48 pm
Posts: 29
Hibernate version:
2.1.4

Is it possible to have multiple DB's in hibernate when you also have ehcache installed? Ehcache 0.7 seems to run as a singlton. I was hoping be able to have a startup servlet init two hibernate configs each with their own ehcache_NAME.xml but I can't see where to change the file name in the hibernate_NAME.cfg.xml file. Is there another cache provider that would allow me to do this?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 16, 2004 11:47 am 
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: Thu Sep 16, 2004 12:12 pm 
Beginner
Beginner

Joined: Mon Nov 03, 2003 11:48 pm
Posts: 29
gavin wrote:
hibernate.cache.region_prefix


Ok. This seems to allow me to set up areas within the ehcache space but does not seem to allow me to have a seperate ehcache.xml for each sessionFactory. I hope I am right on both points. Will I get an error if I combine the ehcache files of both db's into one? Something about a class not being mapped in a session factory?
--Angus


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.