Hello,
We used ehCache in our project, initializing it like this:
Code:
net.sf.ehcache.CacheManager.create()
Now we involved Hibernate and as it also initializes the CacheManager and does it first, the second initialization does not work anymore throwing:
Code:
net.sf.ehcache.CacheException: Cannot parseConfiguration CacheManager. Attempt to create a new instance of CacheManager using the diskStorePath "C:\DOCUME~1\detelin\LOCALS~1\Temp\" which is already used by an existing CacheManager.
The ehCache documentation states the the CacheManager's create() method should return the existing singleton instance if one is present, but it does throw an exception instead.
Does anybody know how we can solve this?
We use hibernate 3.2.0 and the ehcache-1.2.jar that comes with it.
Thanks in advance,
Detelin