Hello,
we have 3 different Web applications:
application 1 and 2:
- JBoss Seam (Hibernate 3.2.0.ga)
- ehCache 1.2.2
- SingletonEhCacheProvider
application 3:
- Hibernate 2.1.7
- ehCache 0.9
Application 1 and 2 are using the same cache with the SingletonEhCacheProvider and they are using the same configuration file. We are planning to reconfigure the application 3 that it can use the same cache as application 1 and 2. It would be great if it could be done without changing the current hibernate version (2.1.7). Is it generally possible to configure hibernate 2.1.7 with a SingletonEhCacheProvider (or something like that) that the same cache is used? And how can I configure it in Hibernate 2.1.7?
The ehcache.xml of application 1 and 2 is located in the JBoss directory <jboss_dir>/server/default/conf/. And the ehcahe.xml of application 3 is located in the associated application archive (/WEB-INF/classes).
The persistence.xml of application 3 is looking like this:
Code:
<?xml version="1.0"?>
<module id="de.xxx.service.persistence" version="1.0.0" package="de.xxx.service.persistence">
<service-point id="SessionService" interface="Session">
</service-point> />
<service-point id="transactionService" interface="de.xxx.service.persistence.TransactionService">
<invoke-factory service-id="hivemind.lib.PlaceholderFactory" />
</service-point>
<service-point id="transactionInterceptor" interface="org.aopalliance.intercept.MethodInterceptor">
<invoke-factory>
<construct class="de..xxx.service.interceptor.TransactionInterceptor"/>
</invoke-factory>
</service-point>
<service-point id="daoFactory" interface="net.xxx.dao.DAOFactory" >
</service-point>
</module>
regards
Christian