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
|