3 Replies Latest reply on Nov 2, 2005 9:29 AM by jiwils

    Replicated caches with each node having its own store

    gbarna

      Hi,

      can someone provide me a configuration for the in the "JBossCache Reference Manual" mentioned
      9.4.4. Replicated caches with each node having its own store

      i tried to configure the caches and it will be replicated every change between the transient (in-memory) caches but it is not stored to the back-end store ie. file. in each cache back-end store only the local changes are stored but not the changes made by the other cache instances.

      thanks,
      gabor barna

        • 1. Re: Replicated caches with each node having its own store
          jiwils

          Is your cache loader setup to be shared or unshared? This sounds like shared cache loader behavior, which based on your post, you do not want.

          Example the following attribute in your cache configuration file:

          <attribute name="CacheLoaderShared">true</attribute>


          • 2. Re: Replicated caches with each node having its own store
            gbarna

            i understood the CacheLoaderShared so that in this case there is only one back-end store and i want definitely that all of the members in the cluster has a backend store so all of the changes made in every member of the cluster have the same data transient and persistent.
            and i need also statetransfer at startup and so far i know it is only possible with the CacheLoaderShared = false.

            • 3. Re: Replicated caches with each node having its own store
              jiwils

              I was not trying to suggest you set the CacheLoaderShared attribute to true. I was only asking how it was set in your case given the observed behavior. If you have set CacheLoaderShared to false, that, at least, would seem to be correct. I have used independant cache loaders like this before, and I have not had this trouble.