그래서 두 번째 레이어 Memcached 캐시로 Hibernate를 구현할 때 모두 hibernate-memcached
구현 (https://code.google.com/p/hibernate-memcached/wiki)을 사용하는 것으로 보입니다.Memcached Hibernate와의 통합
나는 그것을 Hibernate와 통합하려고 시도했지만, 매우 오래된 것으로 밝혀졌다. 예를 들어, 이전 버전의 org.slfj
과 org.hibernate
바이너리 (새로운 바이너리를 사용하기 때문에 내 웹 서비스가 중단됩니다)에 의존합니다. 그러나 Maven을 사용하여 빌드 할 때 바이너리를 제외해도 Hibernate에 대한 새로운 캐싱 정책이 도입되었을 가능성이있는 hibernate.cache.region.factory_class
에 대한 필수 설정 구현이 누락 된 것으로 보입니다. 한마디로
, 나는 위의 오류로 실행 해요 :
org.hibernate.cache.NoCacheRegionFactoryAvailableException: Second-level cache is used in the application, but property hibernate.cache.region.factory_class is not given, please either disable second level cache or set correct region factory class name to property hibernate.cache.region.factory_class (and make sure the second level cache provider, hibernate-infinispan, for example, is available in the classpath).
내 생각 엔 내가 내 자신의 구현을 작성해야합니까? 나는 거기에 얼마나 많은 부러진 단계가 아직도 남아 있는지 알지 못합니다.