1 Reply Latest reply on Mar 9, 2012 9:52 AM by Bryan Shepherd

    How to replace infinispan as hibernate cache with ehcache?

    Richard Yang Apprentice

      I am using jboss 7.0.2 web profile standalone.xml, not standalone-ha.xml.

      In my persistence.xml, I enabled second level cache, then I got;

      missing [ jboss.naming.context.java.jboss.infinispan.hibernate]


      I understand that infinispan is by default the hibnernate cache provider in 7.

      Here are two questions:

      1) If I want to use infinispan, then can I just configure standalone.xml? Do I have to use standalone-ha instead? Do I have to include infinispan config in the subdeployment section of the standalone.xml?


      2) If I want to replace infinispan with something else, what should I do?

      I tried to

      <property name="hibernate.cache.region.factory_class"

                  value="net.sf.ehcache.hibernate.SingletonEhCacheRegionFactory" />

      But got the same missing [ jboss.naming.context.java.jboss.infinispan.hibernate] error.


      Please help.