-->
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: Mutiple Hibernate Instances - EHCache
PostPosted: Fri Dec 08, 2006 7:47 am 
Newbie

Joined: Fri Dec 08, 2006 7:42 am
Posts: 1
Hi,

We are currently re-implementing out persistence layer using Hibernate. One part of our system, which was implemented a while ago uses Hibernate 2.x. The work we are doing now uses Hibernate 3.x. For one reason or another, we cannot change the stuff that has already been implemented in Hibernate 2.x.

A problem has occured now we have implemented EHCache. The config file for the 3.x stuff specifies EHCache as the provider. The 2.x config file does not specify a cache provider.

However, when the 2.x stuff gets initialize, it seems to be picking up that there is an EHCache.xml file on the classpath and attempting to use that. This then leads to an error saying that the location for the cache is already in use (which it is by the 3.x stuff).

Is there a way of specifying two ehcache.xml files, or setting the cache location to somewhere different through the Hibernate API??

Thanks in advance

Jake


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.