2 Replies Latest reply on Oct 1, 2006 11:34 AM by Richard Leherpeur

    Is JBossCache suitable for my problem?

    Richard Leherpeur Novice


      I'm implementing a web application that uses JBoss as application server.
      Some pages served by the application are heavily used and contains readonly data stored in the database.
      I don't want to access the database everytime such a page is served as it is not very good performance wise.

      The requirements are the following:
      - The data can be changed but rarely and not by the user.
      - I'd like to load the data from the database only once at server start.
      - it should also work in a clustered environement.

      One simple solution would be to put the data in a hashmap.
      I would just have to restart each server in a clustered environement and the new data would be available.

      Another solution I think would be to use the JBossCache. I started reading the documentation and I'm sure it would do the job. But isn't it an overkill in my situation or is JBossCache actually designed for that kind of situation?

      Thanks for your help.