-->
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: Multiple (configurable) SessionFactories and EHCache
PostPosted: Wed Jan 05, 2005 12:34 pm 
Newbie

Joined: Wed Jan 05, 2005 12:30 pm
Posts: 17
Location: Philadelphia, PA
My application deploys on customer hardware and connects to three different databases. One of the databases can be version 4 or version 5, I get around this by building a jar containing the hibernate-config.xml file for that database and the mapping and class files for version 4 and another jar for version 5. The install program chooses which jar to deploy.

When it comes to the ehcache.xml file things get more complicated. If multiple databases have multiple versions (later versions have more tables) I would need to generate a considerable number of permutations of the cache configuration. I need non-default timeToLiveSeconds for most of the objects. Should I just declare regions for every table that might be present or is there a better way?

Has anyone considered a rollup model for ehcache.xml where it references other xml files on the classpath like hibernate does with mapping files?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 07, 2005 5:32 pm 
Beginner
Beginner

Joined: Fri Aug 13, 2004 3:07 pm
Posts: 44
I have the same issue. It appears that once ehcache is configured, it just keeps that same configuration and I get "relation does not exist" error messages.

The strange thing is that each session factory does not create a separate Ehcache instance.

any solutions to this?

_________________
Thanks
Sameet


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.