2 Replies Latest reply on Aug 6, 2008 11:22 PM by koonyue

    Class AjaxStateHolder is not cluster friendly

    koonyue

      Hi,

      I am now using memcache to store all session data with Richface, Facelet, JSF 1.2 and Tomcat 6 with state saving = server

      After hours and hours of digging, I finally drill down to this AjaxStateHolder class and notice the Map which use to store view state is only save ti session when first initialize

      All sequence saveState() call will only update the private class variable :
      LRUMap<String,LRUMap<String, Object[]>> views

      and because this class is a singleton, saveSatet() will NOT update the session variable which when I retrieve the view state later in session variable, it always return am empty view state map

      Any one could give me a work around?

      Thanks