Discussions

General J2EE: caching without using Servlet session object OR EJB in WebSphere

  1. Hi

    In my application I am using struts with WebSphere application server.
    To cache the data for users across requests, we don't want to use servlet/jsp session object; as the data that we want to cache for users, is very large. hence servlet session is a bad choice.
    We are not using ejb (so obvoiusly cannot use session bean).

    Can anybody please help me regarding this. Sample code is most welcome.

    Thanks,
    Pravin
  2. Hi Pravin,
    To cache the data for users across requests, we don't want to use servlet/jsp session object; as the data that we want to cache for users, is very large. hence servlet session is a bad choice.

    If you are running in a clustered environment, you can easily store extremely large sets of data in Coherence's Partitioned Cache, which actually equally partitions the entire cached dataset across all nodes in the cluster.

    You may not want to discount the use of the HTTP session for storing this user specific data. When using Coherence*Web (which does not limit the size of the HTTP session object) you can use a number of different models for storing the session data. You may be specifically interested in the SplitHttpSessionModel.

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