Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

FacesContext and HttpSession in Servlets

843844May 21 2007 — edited Jun 22 2007
Hi,

I'm using a servlet in my jsf-based application to retrieve some data via an xml request.
The FacesContext is set in the servlet as proposed in http://www.thoughtsabout.net/blog/archives/000033.html.
I have some important parameters set in the http session so when getting the servlet context I do:
servletContext = ((HttpServletRequest)request).getSession(false).getServletContext();
The problem is that sometimes ((HttpServletRequest)request).getSession(false) returns null. I can't recreate the session because I will lose all parameters set.
Can anybody tell me why is the http session lost or why does it become irrecovarable?

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 20 2007
Added on May 21 2007
2 comments
301 views