Object Caching in a Web Portal Application Using JCS
Subject:   Caching
Date:   2003-12-24 04:20:28
From:   anonymous2
Of course this is a bit of a hack.
Some people use MVC.

In MVC, the data caching is in the model.
If you also use a DAO, most have auto caching and auto flushing. For example iBatis and Hibrenate, so you just declare it.

To put caching of data in the other layer is not MVC.
Cekvenich_Vic at

Full Threads Oldest First

Showing messages 1 through 6 of 6.

  • Caching
    2003-12-29 19:46:53  srinip [View]

    Hi Vic,
    We are not using a OR tool (such as Hibernate) in this app and we have some legacy code (with JDBC calls) where we were hitting DB every time just to display lookup data. So we needed a way to cache data on the servlet container to optimize DB calls. Also, I think Hibernate uses JCS for its caching needs.
  • Caching
    2003-12-24 11:02:17  anonymous2 [View]

    Caching is part of the enterprise system architecture, not a hack.

    The article fails to mention caching system in a cluster environment. More important than performance, a good enterprise system needs a central caching framework in a cluster environment to have scabilities and high-available.

    Just think, can any regular DAO cache AND replicate itself to other JVMs in a cluster?

    • Caching
      2004-01-05 00:56:23  anonymous2 [View]

      Object caching in a distributed and/or clustered environment is a different discussion stream. It is more complex architecture and may not become a thumb rule solution, as the remote objects are not performant compared to local objects. Moreover the data synchronisation, security also need to be addressed.I found this article good as it really depicts the good picture for the per-JVM caching framework.
    • Caching
      2003-12-29 19:52:18  srinip [View]

      You bring up a good point. I briefly mentioned about caching in a cluster environment in the article but didn't address the issue in detail. I agree with you that a scalable and H/A enterprise system definitely needs a well defined distributed caching framework. I will be testing my caching framework in a clustered env very soon. I will share my findings in a follow-up article. Thanks for your feedback.
      • Caching
        2007-12-04 14:31:39  vipani [View]

        Hi Srini,

        I am working on caching webservice response .Can I use JCS ? I am working on SAP J2EE.

      • Caching
        2007-12-04 14:31:25  vipani [View]

        Hi Srini,

        I am working on caching webservice reponse .Can I use JCS ? I am working on SAP J2EE.