3 Replies Latest reply on Nov 27, 2009 7:29 AM by Galder Zamarreño

    Infinispan cluster as hibernate second level cache

    Alex Looi Newbie


      I am trying to setup Hibernate's second level cache to use Infinispan. I have succeeded in doing this on a single instance (node?) of the application.

      I believe this is working because when I execute the same query against hibernate, the first time it executes the select but any subsequent queries look like it is going to the cache (the select query doesn't get executed or is not shown in the log).

      I want to now cluster the cache so that when another instance of the application starts it joins the cluster and replicates the entities in memory across. I tried to start another instance of the application up but it doesn't seem to join the cluster even though the cluster name is the same. If this is possible can someone please show me the configuration or point me in the right direction.

      Thanks in advance.