1 Reply Latest reply on Feb 17, 2011 5:16 AM by Galder Zamarreño

    Clustered 2nd Level Cache Options

    k1100t Newbie

      If I have a JBoss cluster, for the purposes of this question the number of nodes is irrelevant. I understand how to use Infinispan for distrubuted web sessions and can vaguely understand all the config options that you can tweak in the jboss-web.xml. Is there similar list of options I can use to tweak the 2LC via the persistence.xml file...? I can't seem to find anything that tells me how it's replicating the cache around the cluster.



        • 1. Clustered 2nd Level Cache Options
          Galder Zamarreño Master

          The Infinispan configuration options used by 2LC are clearly explained in http://community.jboss.org/docs/DOC-14105 - see the self-explanatory "Default Configuration Explained" section. This website also explains the most common configuration options available for Infinispan 2LC via persistence.xml.


          I would not recommend deviating from the standard 2LC infinispan configuration file unless you really know what you're doing. IOW, unless you understand how Hibernate 2LC works and how Infinispan implements it to make it both performant and consistent from a data perspective.