2 Replies Latest reply on May 19, 2010 6:56 AM by praveen.kumar

    Jboss Cache and Hibernate/JPA

    praveen.kumar

      Hi,

       

        I am using jboss-5.1.0.GA and Hibernate/JPA application.I gone through Jboss cache and find the configuration is at  <JBOSS_HOME>/server/all/deploy/cluster/jboss-cache-manager.sar/META-INF.

       

      Here we have two files,jboss-cache-configs.xml and  jboss-cache-manager-jboss-beans.xml.What i find all  cache configuration in jboss-cache-manager-jboss-beans.xml with bean name "CacheConfigurationRegistry".If we go through default configuration <property name="newConfigurations">,then it has all different cache for different services that are called from application.

       

      My question is,in our Hibernate/JPA application where will configure that will call cacheManager and cache instance will created.

       

      Say,we have configuration for Hibernate/JPA are mvcc-entity,optimistic-entity,pessimistic-entity etc.

       

      From application how will call cacheManger to instantiate a particular configuration (say,mvcc-entity).

       

      Appreciate in advance.

       

      Thanks,

      Praveen Kumar