0 Replies Latest reply: Jul 22, 2014 10:54 AM by 802945 RSS

    cache store config and non-storage nodes

    802945

      Hi, i have a cache config with various caches that have a config that looks like the below. Note how the cache specifies a cache store, the actual bean comes from a spring config file.

       

      In my cluster, some nodes are storage nodes, and some non-storage nodes; but they all include the config below. However, in the non-storage nodes, the myCacheStore bean won't ever be used.

       

      SO, the question is, does the myCacheStore bean actually need to exist in the non-storage process? Ie, can i omit the inclusion of the spring context file that defines the bean?

       

      Thx.

       

       

         <cache-mapping>

                  <cache-name>my-cache</cache-name>

                  <scheme-name>distributed-persistent</scheme-name>

                  <init-params>

                      <init-param>

                          <param-name>cache-store-class-name</param-name>

                          <param-value>spring-bean:myCacheStore</param-value>

                      </init-param>

                  </init-params>

              </cache-mapping>