JBoss Community

Re: Jboss 7.x - HA Web Sessions via Database Persistence with Oracle

created by manish suriya in Datasource Configuration - View the full discussion

Thanks Paul for the reply and looking into the issue!!

Could you please tell if this is the reason i am not seeing http sessions getting saved  in database ? However i can see cache is getting stored in database properly, but not httpsessions. I have used jboss-web.xml with passivation-config. In my code i just creating the session from request and storing it. Do i need to do something more to store session in db? Could you please tell what I am missing ?

        

          FacesContext facesContext = FacesContext.getCurrentInstance();
          ExternalContext externalContext = facesContext.getExternalContext();
          HttpServletRequest httpServletRequest = (HttpServletRequest)externalContext.getRequest();          
         session =httpServletRequest.getSession(true); // marked session as private transient.          
          session.setAttribute("sessionkey", "sessionvalue");

 

Appreciate your help . and thanks for continiously  bearing  me ! :)

Reply to this message by going to Community

Start a new discussion in Datasource Configuration at Community