1 Reply Latest reply on Dec 4, 2005 9:55 PM by inscribe

    hibernate-service.xml disable second level cache

    lucluc

      I think it's not yet possible to enable/disable the secons level cache.
      In fact, reading the source org.jboss.hibernate.jmx.hibernate.java, I found

      // TODO : needed until we decide what to do about "no cache provider specified" internally within Hibernate
      if ( cacheProviderClass == null )
      {
      // Hibernate defaults to always instantiating an EHCacheProvider, which
      // introduces a huge potential for an unecessary dependency
      cacheProviderClass = "org.hibernate.cache.HashtableCacheProvider";
      }

      I would appreciate very much if this detail were left to a develper decision.
      Is this feature scheduled?
      Is there any workaround? For now I'll try to disable the second level cache at the class level.

      Thanks in advance
      Best regards.