0 Replies Latest reply on Oct 5, 2009 9:48 AM by jérôme Vergereau

    Jboss AS 4.2 to 5.1.0 Caching problem O_o

    jérôme Vergereau Newbie

      Hello,

      I'm a bit confuse with JBoss AS 5.1.0 concerning Caching.
      I switch my application from JBoss AS 4.2 to 5.1.0 and I'm little surprise to see that doesn't work.
      So I look the documentation on the http://www.jboss.org/file-access/default/members/jbossejb3/freezone/docs/tutorial/1.0.7/html/Caching_EJB3_Entities.html but change nothing. I have a not classFound org.hibernate.cache.jbc2.JndiMultiplexedJBossCacheRegionFactory etc etc

      Conf on Jboss 4.2.3

      <persistence-unit name="OracleTest">
      
       <jta-data-source>java:/oracleDSTest</jta-data-source>
       <properties>
       <property name="hibernate.hbm2ddl.auto" value="update" />
       <property name="hibernate.cache.use_second_level_cache" value="true"/>
       <property name="hibernate.cache.use_query_cache" value="true"/>
       <property name="hibernate.cache.region.factory_class" value="org.hibernate.cache.jbc2.JndiMultiplexedJBossCacheRegionFactory"/>
       <property name="hibernate.cache.region.jbc2.cachefactory" value="java:CacheManager"/>
       <property name="hibernate.cache.region.jbc2.cfg.entity" value="mvcc-entity"/>
       <property name="hibernate.cache.region.jbc2.cfg.query" value="local-query"/>
       <property name="hibernate.cache.region_prefix" value="OracleTest"/>
       <property name="hibernate.show_sql" value="true" />
       </properties>
       </persistence-unit>
      


      Anyone can help me to know how to set up caching on JBOSS 5.1.0 ?

      Regards, Jérôme