2 Replies Latest reply on Jun 11, 2013 3:53 PM by O G

    Is Clustered/Distributed Hibernate 2nd Level Cache possible?

    O G Newbie



      We have several Java apps using Hibernate and running on several servers and we'd like them to share the cache.  Can Infinispan be used for this?

      I know it can:

      A) cache in heap - https://docs.jboss.org/author/display/ISPN/Getting+Started+Guide+-+Embedded+Cache+in+Java+SE

      B) form a clustered cache with JGroups - https://docs.jboss.org/author/display/ISPN/Getting+Started+Guide+-+Clustered+Cache+in+Java+SE

      3) be used as 2nd level cache provider for Hibernate - https://docs.jboss.org/author/display/ISPN/Using+Infinispan+as+JPA-Hibernate+Second+Level+Cache+Provider


      BUT, can we combine 2) AND 3) and have a Clustered/Distributed Hibernate 2nd Level Cache?

      In other words, can we have different apps running on different servers all share the same cache that ties with Hibernate so that we don't have to explicitly manage the cache (add/remove items)?