manish suriya [https://community.jboss.org/people/techtalk] created the 
discussion

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

To view the discussion, visit: https://community.jboss.org/message/747502#747502

--------------------------------------------------------------
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
[https://community.jboss.org/message/747502#747502]

Start a new discussion in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2077]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to