Caching session data and global data in Struts.

Discussions

Web tier: servlets, JSP, Web frameworks: Caching session data and global data in Struts.

  1. Caching session data and global data in Struts. (1 messages)

    I am looking for best practices in implementing caching
    I want to cache
    1. Session data specific for each user
    2. Cache data that can be shared among users.

    Could some one please advise best practices and design stategy to use caching in Stuts Framework.

    Thanks Much in Advance
    Dimple
  2. Hi Dimple,
    I am looking for best practices in implementing caching I want to cache
    1. Session data specific for each user

    The best place to store per user information is the HTTP session.
    2. Cache data that can be shared among users.

    You can easily use a map to store this information across users.

    If you are running in a cluster you can easily add fault-tolerance of your HTTP session data by using our Coherence*Web HTTP session management module for #1. Similarly you can use Coherence to provide a number of clustered caching functionality for item #2.

    Later,
    Rob Misek
    Tangosol, Inc.
    Coherence: It just works.