[jboss-user] [Datasource Configuration] - Re: Jboss 7.x - HA Web Sessions via Database Persistence with Oracle

manish suriya do-not-reply at jboss.com
Wed Jul 11 10:09:09 EDT 2012


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]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120711/bc1a8f80/attachment-0001.html 


More information about the jboss-user mailing list