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: using the same ehCache with different hibernate versions
PostPosted: Wed Aug 29, 2007 4:22 am 
Newbie

Joined: Wed Aug 29, 2007 3:31 am
Posts: 1
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


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.