3 Replies Latest reply on Jan 20, 2006 8:35 PM by manik

    How to configure

    friendtootis2

      Hi,

      I'm a newbie to jboss cache and was wondering if someone could suggest the best configuration of jboss cache for the following setup. There is one machine that will be doing all of the data importing and multiple other machines which will only be reading the data. What would be the best way to configure the cache on the machine that does the writing so that once new data is committed, the changes are immediately communicated to the readers. Also, how do I configure the readers to not cache changes to the writer after they load new data from the database. Your thoughts are greatly appreciated. Thanks!

        • 1. Re: How to configure
          manik

          - Use REPL_SYNC if you want immediate and guaranteed replication

          - I don't understand your point about: "how do I configure the readers to not cache changes to the writer after they load new data from the database" - I thought the writer loads data from the DB and puts it into cache?

          • 2. Re: How to configure
            friendtootis2

            Sorry, should have been more clear. Basically, the writer is an application that process various feeds, creates hibernate objects and stores them in the database. JbossCache is used as a second level cache with hibernate. The reader applications, are responcible for reading the data and displaying to the user. I would like to make sure that when the reader application, after a restart, loads data that is not currently in cache not to send the newly loaded objects to the writer application potentially interfering with a feed load of the same data occuring at the same time.

            The reason I'm worried, is due to error experienced when there are two instances of the writer using jboss cache, it seems that one can interfere with the other, corrupting the data. Using jboss cache 1.2

            • 3. Re: How to configure
              manik

              Hi - if you are using this as a 2nd level cache with hibernate pls have a look at

              http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossCacheHibernate