0 Replies Latest reply on Jun 18, 2007 4:54 AM by Helmut Maierhofer

    How to keep user sessions active when restarting the server/

    Helmut Maierhofer Newbie

      We want to update our application running on jboss frequently while users are actually online working whith it.

      Has anybody out there done this?

      I tried to achieve it by subclassing org.apache.catalina.session.PersistentManagerBase and org.apache.catalina.session.StoreBase to save the objects in the HTTP session to a file and implementing org.jboss.ejb3.cache.StatefulCache to save my stateful session beans to files.

      The problem with this approach is, that when activating the passivated SFSBs (which use seam for bijection) in the @PostActivate method the seam-injected objects are not available. But in order to restore the state of the bean this objects are needed.

      Is there a better way?

      BTW: We use jboss 4.0.5 GA with myfaces, hibernate and seam.